LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2014, 01:37 PM   #1
server69
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Rep: Reputation: Disabled
How can I disable logs for terminal?


Hi,
when I login to debian server with terminal, I type command: last
and I get last login information.
I want to disable this option and I used even /etc/init.d/rsyslog stop
but again when I logged in next day, I type last and again I get IP address from where I logged in terminal last time.

my question is: How can I disable logs for terminal (user root)?

of course, I checked if rsyslog is running and it is not running:
[FAIL] rsyslogd is not running ... failed!

I visited rsyslog maillist and this was their answer:

Quote:
The record of logins used by the last command is not run through rsyslog, it's a separate auditing log that's managed by the login program itself.
 
Old 06-30-2014, 02:24 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Check /var/log/wtmp, if you read the manpage for login it states that previous sessions are listed there.
 
Old 06-30-2014, 02:25 PM   #3
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 28
# rm /var/log/wtmp
# ln -s /dev/null /var/log/wtmp

This is pretty Q&D though.
 
1 members found this post helpful.
Old 07-01-2014, 12:20 PM   #4
server69
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
thank you, I did as you said and now it is good.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
disable cron logs from php-syslog-ng harshaabba Linux - General 1 08-15-2010 11:50 AM
disable apache 1.3 logging / logs walidaly Linux - Server 1 04-02-2007 01:55 AM
Samba can't disable printing and errors in logs humbletech99 Linux - Networking 0 09-29-2006 11:21 AM
Disable Reverse DNS Lookup's in logs cyph3r7 Linux - Networking 1 12-02-2004 05:45 PM
Firewall logs in logs and terminal... robbow52 Debian 7 11-20-2004 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:46 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