honging
07-09-2002, 10:15 AM
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!
thanks!
![]() | View Full Version : listing active users honging 07-09-2002, 10:15 AM 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! chirpy 07-09-2002, 10:50 AM 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 chirpy 07-09-2002, 10:52 AM ...I forgot, who gives you more information about shell users: who -lH iamdave 07-09-2002, 05:44 PM Thanks for the commands Jonathan, these should come in handy... iamdave 07-09-2002, 05:47 PM 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. chirpy 07-09-2002, 06:02 PM Typical :rolleyes: ;) 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. |