Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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

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:

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, 03:24 PM   #2
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 727
Blog Entries: 3

Rep: Reputation: 226Reputation: 226Reputation: 226
Check /var/log/wtmp, if you read the manpage for login it states that previous sessions are listed there.
Old 06-30-2014, 03:25 PM   #3
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, 01:20 PM   #4
LQ Newbie
Registered: Jun 2014
Posts: 2

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:50 PM
disable apache 1.3 logging / logs walidaly Linux - Server 1 04-02-2007 02:55 AM
Samba can't disable printing and errors in logs humbletech99 Linux - Networking 0 09-29-2006 12:21 PM
Disable Reverse DNS Lookup's in logs cyph3r7 Linux - Networking 1 12-02-2004 06:45 PM
Firewall logs in logs and terminal... robbow52 Debian 7 11-20-2004 08:13 PM > Forums > Linux Forums > Linux - Newbie

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

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