You are not logged in.
Pages: 1
Topic closed
In the /etc/shadow shipped with the filesystem package, we have lines like this:
systemd-resolve:x:14871::::::where the third field is always set to 14871, which is " the date of last password change, expressed as the number of days since Jan 1, 1970."
$ date -d '1970-01-01 +14871 days' -u
Sun Sep 19 00:00:00 UTC 2010...so what's the significance of this day?
Last edited by lolilolicon (2014-06-28 12:38:05)
This silver ladybug at line 28...
Offline
Offline
ah... karol drops my jaw again.
This silver ladybug at line 28...
Offline
<kicks lolilolicon's jaw under the bed while whistling innocently>
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline
I'm sorry for bumping such an old thread, but the link to the answer above no longer works.
After some digging, I found this link does work: https://github.com/LadueCS/filesystem/c … 6eddc82fea
For the sake of posterity (if GitHub or the repo ever go away):
The link is commit 42436993035fefc110b0dcdbebb7286eddc82fea made by Pierre Schmitz with the message:
Setting last password chagne to future might not be a good idea. Let's set it to "today".
The commit changes user creation dates from 99999 (what existed before the commit) to 14871 (which is the date of the commit).
Essentially, to ensure compatibility with other software, the user creation date has to be some number above 0 (after January 1, 1970), but also in the past. Since 99999 corresponds to October 16, 2243, it was changed to 14871, to make sure it will always represent a date in the past.
Offline
Please don't necrobump an old solved thread just to fix a dead link.
Closing.
Offline
Pages: 1
Topic closed