Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th September 2012, 05:32 PM
KitchiRUs Offline
Registered User
 
Join Date: Dec 2011
Location: India
Posts: 82
linuxfirefox
Multiple instances of same user at the same time

Hi,

So I noticed something on my Fedora 17 KDE 64-bit machine.
When I ran the "uptime" command in terminal, this was the output -
Code:
[krishna@Kitchi ~]$ uptime
 21:58:00 up  5:58,  4 users,  load average: 0.28, 0.16, 0.09
But there is only one account setup on my computer, so I ran the "users" command, and this was the output
Code:
[krishna@Kitchi ~]$ users
krishna krishna krishna krishna
It appears that I've logged in four times with the same account! Does anyone know why this would happen?

---------- Post added at 10:02 PM ---------- Previous post was at 10:00 PM ----------

So I just figured something else out... every time I start and stop a custom 'activity' (the KDE Workspace feature) it seems to register another user as 'logged in'.
Reply With Quote
  #2  
Old 24th September 2012, 06:22 PM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: Multiple instances of same user at the same time

Quote:
Originally Posted by KitchiRUs View Post
Hi,

So I noticed something on my Fedora 17 KDE 64-bit machine.
When I ran the "uptime" command in terminal, this was the output -
Code:
[krishna@Kitchi ~]$ uptime
 21:58:00 up  5:58,  4 users,  load average: 0.28, 0.16, 0.09
But there is only one account setup on my computer, so I ran the "users" command, and this was the output
Code:
[krishna@Kitchi ~]$ users
krishna krishna krishna krishna


It appears that I've logged in four times with the same account! Does anyone know why this would happen?

---------- Post added at 10:02 PM ---------- Previous post was at 10:00 PM ----------

So I just figured something else out... every time I start and stop a custom 'activity' (the KDE Workspace feature) it seems to register another user as 'logged in'.

How many terminals are open?, each one adds another user instance.
Reply With Quote
  #3  
Old 24th September 2012, 06:32 PM
KitchiRUs Offline
Registered User
 
Join Date: Dec 2011
Location: India
Posts: 82
linuxfirefox
Re: Multiple instances of same user at the same time

Okay, so I have a terminal widget installed, so there's always one terminal open on my desktop.
But once I killed that, only one user was 'logged off'. There were still remaining, and no open terminal.

Is this normal behaviour?
Reply With Quote
  #4  
Old 24th September 2012, 06:51 PM
hadrons123's Avatar
hadrons123 Offline
'The Blue Dragon'
 
Join Date: Jan 2011
Location: chennai
Posts: 988
linuxfirefox
Re: Multiple instances of same user at the same time

Quote:
Is this normal behaviour?
yes.

Code:
man users
__________________
LENOVO Y580 FHD Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8 |660M GTX NVIDIA | 120 GB SSD OCZ AGILITY Fedora
Reply With Quote
  #5  
Old 25th September 2012, 01:34 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: Multiple instances of same user at the same time

Try the "w" command which should give you more information.
Reply With Quote
  #6  
Old 25th September 2012, 02:33 PM
KitchiRUs Offline
Registered User
 
Join Date: Dec 2011
Location: India
Posts: 82
linuxfirefox
Re: Multiple instances of same user at the same time

So this was my output
Code:
 18:59:37 up  4:27,  4 users,  load average: 0.15, 0.22, 0.17
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
krishna  :0                        14:32   ?xdm?  17:19   0.07s /bin/sh /usr/bin/startkde
krishna  pts/0    :0               14:32    4:26m  0.04s  0.04s /bin/bash
krishna  pts/1    :0               14:32    4:26m  0.00s  6.13s kded4
krishna  pts/2    :0               18:58    0.00s  0.06s  0.00s w
That is quite interesting, thanks! I didn't know that KDE & bash logged in as separate users.

I can't understand why, though. Is that so I can open several instances of bash while I'm logged in?
Reply With Quote
  #7  
Old 25th September 2012, 02:47 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,097
linuxfirefox
Re: Multiple instances of same user at the same time

I assume you are wondering about he "what" column?

It is nothing more than the application that has the terminal open. It could be bash, but doesn't have to be.

In my case:
Code:
$ w
 09:37:02 up 2 days, 23:35,  5 users,  load average: 0.02, 0.19, 0.21
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
jesse    tty8     :1               07:49    2days  3:39   0.04s gdm-session-wor
jesse    pts/1    :1.0             07:50    1:03m  0.01s  0.01s bash
jesse    pts/2    :1.0             08:36   59:58   1:14   0.00s make
jesse    pts/3    :1.0             09:37    0.00s  0.00s  0.00s w
Bash is currently attached to pts/1. make is running on pts/2, and w on pts/3. What is attached depends on what is running. The "what" column is based on notion of the current process as others are waiting (such as the bash shell that I used to start the "w" command, or the shell that I used to start the "make").

---------- Post added at 09:47 AM ---------- Previous post was at 09:44 AM ----------

BTW, the user count is just counting the number of recorded instances in the ump accounting file, Each terminal session (as in gterm/xterm/...term) records an entry. Oh, and if you use xterm it has an option "-ut" to disable recording an entry...
Reply With Quote
  #8  
Old 25th September 2012, 02:53 PM
KitchiRUs Offline
Registered User
 
Join Date: Dec 2011
Location: India
Posts: 82
linuxfirefox
Re: Multiple instances of same user at the same time

Oh, right. Cool!
Thanks for all the info!
Reply With Quote
Reply

Tags
instances, multiple, time, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Instances of Kile daviddoria Using Fedora 2 5th October 2010 03:51 PM
multiple instances of pulesaudio g8jvm Servers & Networking 6 20th September 2010 07:16 PM
Multiple instances of yum studyhard Using Fedora 2 25th June 2010 05:14 AM
Multiple Instances of artsd in fc3 ericxx2004 Using Fedora 1 18th November 2004 12:32 AM


Current GMT-time: 07:45 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat