How to erase the login history (RedHat)?
Hi all,
I know command "last" can show the login history. But I'm very curious that if I can erase that information? fish |
well if you actaully read the man page for last:
Code:
NOTES |
The files you are looking for are at least /var/log/wtmp but there might be a couple of other files logging login stuff like specified in /etc/syslog.conf
|
When you're dealing with /var/log/wtmp, btmp and utmp, do not erase them. The file will not be recreated. Instead do:
cat /dev/null >/var/log/wtmp On some systems, you can just do: >/var/log/wtmp This will remove the contents of the file while leaving it intact. -mk |
All times are GMT -5. The time now is 05:43 PM. |