Lie :The files wtmp and btmp might not be found. The system only logs information in these files if they are present.
Code:
rm /var/log/wtmp /var/log/btmp /var/log/lastlog
Code:
>/var/log/wtmp;>/var/log/btmp;>/var/log/lastlog;chattr +i /var/log/wtmp /var/log/btmp /var/log/lastlog
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
How to edit the subject title , add [Solved] ?
Statistics: Posted by jebez — 2024-07-07 08:26