LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I disable logs for terminal? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-disable-logs-for-terminal-4175509670/)

server69 06-30-2014 01:37 PM

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.

coralfang 06-30-2014 02:24 PM

Check /var/log/wtmp, if you read the manpage for login it states that previous sessions are listed there.

fang0654 06-30-2014 02:25 PM

# rm /var/log/wtmp
# ln -s /dev/null /var/log/wtmp

This is pretty Q&D though.

server69 07-01-2014 12:20 PM

thank you, I did as you said and now it is good.


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