Quote:
Originally Posted by luca74
Hi all,
does anybody know, how to clean the linux system log files that are written when a user connect from a remote machine to the target linux machine.
e.g. I want clean the logs when i connect to the target linux, using telnet or ssh. Are this logs in linux under a standard path position?
thanks for any suggestion.
|
There are a couple of places. Usually /var/log/messages is the most likely one. If you open /etc/syslog.conf, you'll see where your *.auth messages are getting written to.
You can either remove that line from /etc/syslog.conf, and things won't get logged. Or you can write a script that gets run when you log into the machine, and put it in your .bashrc, or in the system wide profile, but be warned: both of these may not be good ideas. Mainly because if someone does something nasty to your system, you will have *NO IDEA* how they got in, from where.