Click to See Complete Forum and Search --> : How to log visitors?
]Unicron[
05-24-2001, 08:32 AM
Hi all!
Is there a way to log every visitor on your homepage? I'm using Suse7 and Apache.
Also is there a way to log every user who enters my system per telnet etc?
tnx in advance
compunuts
05-24-2001, 09:02 AM
Apache log every access to your server with access.log which is at /var/log/apache directory. If you want to have the domain rather than the IP, you can also configure Apache to resolve the domain but it burden the server a bit.
I believe you can also log TELNET access but I'm not sure how to check it since I've never run TELNET... I use SSH as an secure alternative...... Hack around at /var/log to see where would it log it. Sorry can't help you there....
HTH....
]Unicron[
05-24-2001, 09:43 AM
tnx very much, i found the log file for the apache server :D
and if somebody could tell me how to log telnet users it would be great :cool:
compunuts
05-24-2001, 10:11 AM
As I've stated before, I don't have much experience with TELNET so I'm purely guessing here.... I don't think you will be able to log TELNET log ins.... Telnet use PAM (plaggable Authentication Modules) to authenticate its users also. So it will log all the access in /var/log/auth.log file. In fact, some of my test shows that it's true. Here is my log entry for two TELNET attemps.
May 24 06:23:04 debian-server PAM_unix[2403]: Session opened for user compunuts <uid=1000>
May 24 06:25:23 debian-server PAM_unix[2407]: <su> Session opened for user root by compunuts <uid=1000>
HTH......