LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-30-2010, 02:57 PM   #1
luca74
LQ Newbie
 
Registered: Jan 2008
Posts: 18

Rep: Reputation: 0
cleaning logs on linux


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.
 
Old 06-30-2010, 03:58 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by luca74 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cleaning linux synch Linux - Newbie 4 02-25-2009 05:18 PM
Finding LDAP Server Logs / Application Logs in Linux arbignay Linux - Newbie 2 03-24-2008 09:54 AM
Apache logs - ???Linux logs??? mylo2003 Linux - General 3 08-07-2003 04:49 PM
Carpet Cleaning and Linux? bobh080850 LinuxQuestions.org Member Intro 1 05-16-2003 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration