I want to know all the people who access my server, is there a log that shows when and how the people access my server?--EDIT--Sorry for not providing any more details awhile ago. My server is Ubuntu 10.04 LTS running in Linode. I heard numerous scary story of hackers trying to hack a server, so I want to know where are the logs that will show me who accessed my server by ssh, or anything that can put my server in danger.I have installed the LAMP stack in my server. That's all I have ever installed.
How to find who's accessing my server? My server is Ubuntu
server;ubuntu;lamp
Put on a security camera next to your server if you want to see who's accessing you physical server.Just to know that someone is sending packets to your server, you can set up IP Tables:sudo iptables -I INPUT -j LOGsudo iptables -I FORWARD -j LOGThis is probably not what you meant, but it logs ALL incoming packets to /var/log/kern.log, whether those are valid or not. the previous command was illustrative, do not use it in this form or you'll flood your logs causing a possible DoSA small list of services with their logfiles:SSH: each login attempt is logged to /var/log/auth.logApache: on a default installation using apt, log files are written in the directory /var/log/apache2/exim: connection attempts are logged to /var/log/exim4/mainlog (but harmless messages about the queue are logged to this one too)