Results 1 to 6 of 6
  1. #1
    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!

  2. #2
    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

  3. #3
    ...I forgot, who gives you more information about shell users:
    who -lH

  4. #4
    Join Date
    Nov 2001
    Location
    California
    Posts
    1,991
    Thanks for the commands Jonathan, these should come in handy...

  5. #5
    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.

  6. #6
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •