Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

General Questions • Re: [Software] How to disable login history ?

$
0
0
The files wtmp and btmp might not be found. The system only logs information in these files if they are present.
Lie :

Code:

rm /var/log/wtmp /var/log/btmp /var/log/lastlog
then after reboot the files are recreated ; last shows 1 login & 1 logout .

Code:

>/var/log/wtmp;>/var/log/btmp;>/var/log/lastlog;chattr +i /var/log/wtmp /var/log/btmp /var/log/lastlog
works !
But during the boot process I've :

Starting systemd-update-utmp.service - Record System Boot/Shutdown in UTMP...
[FAILED] Failed to start systemd-update-utmp.service - Record System Boot/Shutdown in UTMP.
See 'systemctl status systemd-update-utmp.service' for details.
[DEPEND] Dependency failed for systemd-update-utmp-runlevel.service - Record Runlevel Change in UTMP.

So finally

Code:

/var/log/wtmp;>/var/log/btmp;>/var/log/lastlog;chattr +i /var/log/wtmp /var/log/btmp /var/log/lastlog;systemctl mask systemd-update-utmp.service systemd-update-utmp-runlevel.service
alienspy thanks again , how did you find https://linuxconfig.org/how-to-disable- ... rhel-linux ?

How to edit the subject title , add [Solved] ?

Statistics: Posted by jebez — 2024-07-07 08:26



Viewing all articles
Browse latest Browse all 2901

Trending Articles