Help with 'user', 'w', 'who' commands

Help with 'user', 'w', 'who' commands

Post by Chris Stum » Tue, 16 May 2000 04:00:00



Hello,

I am having a strange problem with commands that are supposed to give me

info on users currently logged in on my linux box. For instance, when I
remotely connect to my linux machine while another user is logged in on
tty1, I'll run the 'users','w', 'who', etc. command to see what they
say.  In return I only get listings pertaining to my userid.  The only
way that I know another user is logged in is because when I run a 'ps
-ef' I can see processes started by another individual and which are
related to X-Window. I guess my question is where do the 'users', etc.
commands get their info from (/etc/passwd?)? Are there any adjustments
that I can make to a particular file in order to get these commands to
work properly?  Why are they not working?  Also, when I issue the 'talk'

command to another user on the same machine, I get an error message.
I'm assuming that this is because Linux, for some reason, isn't
recognizing the other userid (or could it be because the other user
doesn't have an X-term open?). Logging in as root and running 'users',
etc. doesn't help any.  Nor do the man pages.  Any help with this issue
is very much appreciated.

Thanks in advance to all who reply to this post.

 
 
 

Help with 'user', 'w', 'who' commands

Post by Stev » Tue, 16 May 2000 04:00:00


Just had a go over here and users, who and w all work fine with
a second user logged in and as an ordinary user so I can't begin
to imagin what the problem might be.  

It might be useful to say which distro you're using and how those
users are logging in (via modem,  over a lan or just at the keyboard
in a seperate session/console).

--
Cheers

%HAV-A-NICEDAY Error not enough coffee  0 pps.

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

 10:14pm  up 19 days, 15 min,  5 users,  load average: 1.37, 1.20, 1.17

 
 
 

Help with 'user', 'w', 'who' commands

Post by Andreas Kahar » Wed, 17 May 2000 04:00:00




> Hello,

> I am having a strange problem with commands that are supposed to give
me

> info on users currently logged in on my linux box. For instance, when
I
> remotely connect to my linux machine while another user is logged in
on
> tty1, I'll run the 'users','w', 'who', etc. command to see what they
> say.  In return I only get listings pertaining to my userid.  The only
> way that I know another user is logged in is because when I run a 'ps
> -ef' I can see processes started by another individual and which are
> related to X-Window. I guess my question is where do the 'users', etc.
> commands get their info from (/etc/passwd?)? Are there any adjustments
> that I can make to a particular file in order to get these commands to
> work properly?  Why are they not working?  Also, when I issue the
'talk'

> command to another user on the same machine, I get an error message.
> I'm assuming that this is because Linux, for some reason, isn't
> recognizing the other userid (or could it be because the other user
> doesn't have an X-term open?). Logging in as root and running 'users',
> etc. doesn't help any.  Nor do the man pages.  Any help with this
issue
> is very much appreciated.

I started using 'rxvt' instead of 'xterm' some time ago, and I found
that I could not see myself when issuing 'who' or 'w' (this was running
Solaris at work though).

/A

--
# Andreas K?h?ri, <URL:http://hello.to/andkaha/>.
# All junk email is reported to the appropriate authorities.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Help with 'user', 'w', 'who' commands

Post by ergeor.. » Thu, 18 May 2000 04:00:00




> Hello,

> I am having a strange problem with commands that are supposed to give
me

> info on users currently logged in on my linux box. For instance, when
I
> remotely connect to my linux machine while another user is logged in
on
> tty1, I'll run the 'users','w', 'who', etc. command to see what they
> say.  In return I only get listings pertaining to my userid.  The only
> way that I know another user is logged in is because when I run a 'ps
> -ef' I can see processes started by another individual and which are
> related to X-Window. I guess my question is where do the 'users', etc.
> commands get their info from (/etc/passwd?)? Are there any adjustments
> that I can make to a particular file in order to get these commands to
> work properly?  Why are they not working?  Also, when I issue the
'talk'

> command to another user on the same machine, I get an error message.
> I'm assuming that this is because Linux, for some reason, isn't
> recognizing the other userid (or could it be because the other user
> doesn't have an X-term open?). Logging in as root and running 'users',
> etc. doesn't help any.  Nor do the man pages.  Any help with this
issue
> is very much appreciated.

> Thanks in advance to all who reply to this post.

I've been having some wierd stuff with who lately also.
I'm the only one logged on this box (RedHat 6.0, KDE).  If I issue a who
command from a command line in kvt (KDEs terminal window) I get nothing
back.  finger tells me that nobody is logged on (then who issued the
command!?  Yea I know, could be in a cron job, etc.)

Now the wierd part...
If I fire up an xterm session, finger, who, w, all start to work
correctly, both in the xterm window and all of the kvt windows (even
those su-ed to another user!).  As soon as I close the xterm window, it
doesn't work anymore.

Any ideas what is going on?  It seems like kvt is buggy?  What terminal
program were you using?
Thanks
Eric

Sent via Deja.com http://www.deja.com/
Before you buy.