Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-07-2007, 09:26 AM
|
#1
|
Member
Registered: Feb 2007
Distribution: Slackware
Posts: 40
Rep:
|
running top shows 2 users
Hi. When running top, uptime, or w commands I often show 2 users when I am the only one logged on. I always figured the other user was root (running system processes) since when I log in as root it only shows 1 user.
However, last night when logged in as myself i was down to 1 user. When I'm showing 2 users and run the who command I am the only one logged in? Can someone explain this to me? Thanks for the help.
|
|
|
03-07-2007, 10:23 AM
|
#2
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
|
When i run 'w', it shows me which user(s) by name, where they are logged in from, and what process they are running. 'top' shows similar information. What additional information do you want? There are oftne numerous UIDs with active processes running. 1 or 2 sounds like a very low number.
--- rod.
|
|
|
03-07-2007, 10:33 AM
|
#3
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
He is saying that when there is only ONE person logged in (as shown by who, w, finger etc...) top is showing "2 users".
I was curious if this wasn't due to the console AND a pty (Putty/Telnet/ssh login) being open. I logged out of my PuTTY terminal and did top on console and it displayed only 1 user. Oddly enough who, w, finger et al show NO one logged in even though I am logged in on the console.
|
|
|
03-07-2007, 10:35 AM
|
#4
|
Member
Registered: Feb 2007
Distribution: Slackware
Posts: 40
Original Poster
Rep:
|
Thanks for the reply,
Sorry if I didn't word the question very clearly. I was just trying to verify if it was normal that I would show more than 1 user when running the top command if I am the only one logged into the system. I had suspected as you point out that it would likely be other processes running.
|
|
|
03-07-2007, 03:06 PM
|
#5
|
Member
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346
Rep:
|
You'll always have 2 users: root (since some daemons/programs need root priviligies to run) and thyself. Don't worry
|
|
|
03-07-2007, 05:39 PM
|
#6
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
Nope - Logged in as myself on the console top shows only 1 user.
|
|
|
03-07-2007, 05:39 PM
|
#7
|
Member
Registered: Mar 2007
Distribution: Slackware
Posts: 264
Rep:
|
Gibson79 this is a issue but the fix eludes me, something is not cleaning up the utmp file and the system thinks users logged in that are no longer logged in.
It is discussed here a bit also: http://www.linuxquestions.org/questi...d.php?t=534867
I have gotten used to it now but the first time I noticed it I thought I had been owned
Last edited by XGizzmo; 03-07-2007 at 05:41 PM.
|
|
|
03-08-2007, 09:48 AM
|
#8
|
Member
Registered: Feb 2007
Distribution: Slackware
Posts: 40
Original Poster
Rep:
|
Hi all,
I shut down my machine last night to see what would happen from a fresh boot, and went straight into my account. Only shows 1 user at the console and 1 user after I start x, so it must be something like XGizzmo is suggesting with the utmp file.
Oh well, I won't worry too much about it until I start to see other people logged in when I run who. That has always only shown me
Thanks for the help.
|
|
|
03-08-2007, 10:19 AM
|
#9
|
Member
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346
Rep:
|
Quote:
Originally Posted by jlightner
Nope - Logged in as myself on the console top shows only 1 user.
|
Hmm, yes you're right. My bad
|
|
|
All times are GMT -5. The time now is 02:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|