Results 1 to 6 of 6
Thread: listing active users
-
07-09-2002, 10:15 AM #1Junior Guru Wannabe
- Join Date
- Jun 2001
- Posts
- 41
listing active users
is there a command on a raq to list the active users on the server? i'm interested in taking a more "active" role to ensure no one bad is on the server
thanks!
-
07-09-2002, 10:50 AM #2Web Hosting Guru
- Join Date
- Jun 2002
- Posts
- 289
Well, it depends what you're looking for - users logged in to the shell, users logged in via ftp, etc.
One handy tool is last which will show you past and present logins:
last -d -a | more
For just shell users try:
users
For just ftp users try:
ftpwho
-
07-09-2002, 10:52 AM #3Web Hosting Guru
- Join Date
- Jun 2002
- Posts
- 289
...I forgot, who gives you more information about shell users:
who -lH
-
07-09-2002, 05:44 PM #4Web Hosting Master
- Join Date
- Nov 2001
- Location
- California
- Posts
- 1,991
Thanks for the commands Jonathan, these should come in handy...
-
07-09-2002, 05:47 PM #5Web Hosting Master
- Join Date
- Nov 2001
- Location
- California
- Posts
- 1,991
Just to let you know when I did ftpwho, it returned
Service class all:
- 0 users (no maximum)
However when I did, last -d -a | more , it showed me the past logins and the currently logged in SSH and FTP users.
-
07-09-2002, 06:02 PM #6Web Hosting Guru
- Join Date
- Jun 2002
- Posts
- 289
Typical Presumbly you tried ftpwho again straight after last and it was still mis-reporting?
At least last should always be accurate so long as /var/log/wtmp is in good working order. It's quite a handy utility.