var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
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
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:
For just ftp users try:
...I forgot, who gives you more information about shell users:
Thanks for the commands Jonathan, these should come in handy...
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.
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.