LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to disable "last login log" & disable "last login message" when start login. (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-disable-last-login-log-and-disable-last-login-message-when-start-login-621948/)

hocheetiong 02-18-2008 04:12 AM

how to disable "last login log" & disable "last login message" when start login.
 
hi, 1st question: in /var/log/lastlog this file keeping a last login(user,time...) how to erase it.

2nd question: Evertime start a new login than will show a message "Last login: Mon Feb 18 01:02:33 2008 from 192.168.1.10" And how to disable this function.


Thank you.

reddazz 02-18-2008 05:32 AM

Out of curiosity why would you want to disable/remove these logs? Obviously the information they show is important and can give you clues if an unauthorised person accesses your computer.

ak99505 02-18-2008 09:14 PM

Code:

touch .hushlogin
run that command in your home directory

nileshparmar 02-08-2011 02:13 AM

It works fine

now how can i rollback to ??

i have tried to delete that file but still message is disappear.

nileshparmar 02-08-2011 05:35 AM

Lat Login from message is showing now

I have deleted that file & reboot the server & it worked.


All times are GMT -5. The time now is 09:02 PM.