Web Hosting Talk







View Full Version : Who was the last one to access the server ?


oc3
11-03-2002, 05:00 PM
Hi

is there any way that i can find out which user was the last one to access the server ( upload / download ) or what ever.

I just need to know who was the last registered user to have used the server ?

Thanks/-

Jedito
11-03-2002, 05:27 PM
yes, use the comand

last

;)

MarkIL
11-03-2002, 06:40 PM
If you want to see who was the last user to login (w/SSH, telnet, rsh, whatever) then yeah, last is what you need (as Jedito pointed out).

Otherwise, if you're looking for FTP or other information, check the respective daemon's logfiles.

oc3
11-04-2002, 04:43 AM
Hi lewney,

Could you elaborate more on Deamon files. How do i read, where is it located etc, etc.

Thanks !

MarkIL
11-04-2002, 08:47 AM
Originally posted by oc3
Hi lewney,

Could you elaborate more on Deamon files. How do i read, where is it located etc, etc.

Thanks !

Hrm, each daemon either
a) keeps its own logfile (usually under /var/log, or /var/adm/log etc)
b) logs to syslog (/var/log/messages, man syslog for more info)
c) all of the above.

If you could name a specific daemon (such as ProFTPd), I'd elaborate further. No point in listing hundreds of daemon, eh? ;)