mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
createfiles: Add Y2038 info about the traditional {b,u,w}tmp and lastlog files
And utmp does not exist on systemd-based LFS.
This commit is contained in:
parent
3cd2eae9eb
commit
6e11fe2728
@ -215,8 +215,23 @@ chmod -v 600 /var/log/btmp</userinput></screen>
|
|||||||
failed login attempts. The <filename>/var/log/btmp</filename> file records
|
failed login attempts. The <filename>/var/log/btmp</filename> file records
|
||||||
the bad login attempts.</para>
|
the bad login attempts.</para>
|
||||||
|
|
||||||
<note><para>The <filename>/run/utmp</filename> file records the users that
|
<!-- systemd no longer creates this -->
|
||||||
are currently logged in. This file is created dynamically in the boot
|
<note revision='sysv'><para>The <filename>/run/utmp</filename> file
|
||||||
scripts.</para></note>
|
records the users that are currently logged in. This file is created
|
||||||
|
dynamically in the boot scripts.</para></note>
|
||||||
|
|
||||||
|
<!-- AFAIK they are not vital for system function, users requiring such
|
||||||
|
info should rely on systemd-logind or elogind or some custom PAM
|
||||||
|
module. Maybe we can stop to create them at all. -->
|
||||||
|
<note>
|
||||||
|
<para>
|
||||||
|
The <phrase revision='sysv'><filename>utmp</filename>,
|
||||||
|
</phrase><filename>wtmp</filename>, <filename>btmp</filename>, and
|
||||||
|
<filename>lastlog</filename> files use 32-bit integers for timestamp
|
||||||
|
and they'll be fundamentally broken after year 2038. Many packages
|
||||||
|
have stopped using them and other packages are going to stop using
|
||||||
|
them. Do not rely on the contents of them for anything.
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
Loading…
Reference in New Issue
Block a user