Re: How determine all users logged into linux...
You might want to make that
just to make sure you see the whole line. Othewise ps will chop off
some of the information, the 'w' means wide, and more of them
means more wide.
Check the ps manpage for a full list of the options and what they mean.
Finding all the logged on users is actually quite difficult, because
there are lots of non-standard ways to log in and get something that
doesn't look like a shell, and isn't written to utmp/wtmp (so that
finger, who, and w don't notice it).
If you just want to log off accounts that you have forgotten about
though, ps followed by a kill signal will do it.
I recommend you read the man pages for these tools, and follow the
"See also" references in those man pages, to learn more about Unix,
in general the manpages are the way to learn. And you can search the
man pages with a "-k" though it's not clear you would have known
what to put after the "-k" in this case.
Of course, "man man" to learn more :-)
On Sat, Aug 21, 1999 at 10:32:29AM -0700, André Bell wrote:
> >the ways to see logged-in users:
> >the only way to "log off" a user is to kill his/her shell
> >you can see what pid a shell running on a certain vterminal has by running
> >"ps axf"
> >then kill a user's pid with
> >kill <pid-no>
> >hope this helps
> It certainly did. i also type ps by itself and "ps aux" and got different
> information. No idea what ps aux is for, I accidentally typed it and was
> surprised the typo actually was valid. Anyways, I logged on several
> different users and ps'ed and kill'ed them
> Thanks, now I know how to log off accounts when I telnet in and forget to
> log off.
> Unsubscribe? mail -s unsubscribe firstname.lastname@example.org < /dev/null