You are not logged in.
Backstory:
I really goofed and F'd my system by merging a very old shadow.pacnew that effectively reset my shadow file, resulting in me getting locked out of my system.
This post, especially eschwartz helped me tremendously to understand my wrongdoing. What really saved me though was mention of /etc/shadow-.
Who creates these files?
I use pacfiles-mode to resolve these conflicts.
Revelations:
https://bbs.archlinux.org/viewtopic.php … 1#p1821111
https://bbs.archlinux.org/viewtopic.php … 6#p1904656
Solution for posterity:
I sideloaded my filesystem from a live usb:
# mount /your/fs/partition/or/vg /mnt/os
and copied the backup `-` file onto the original:
# cp /mnt/os/etc/shadow- /mnt/os/etc/shadow
Offline
Your question strikes me as oddly worded. The /etc/shadow file is owned by the core/filesystem package, but /etc/shadow- is not own by any package. It is also not created by any package, but it can be created or modified by a range of binaries. The binaries typically used that can create / modify this file all belong to the package core/shadow.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I googled for "/etc/shadow- dash" and the first result told me to look up man 5 shadow and man 5 passwd. Short answer: Those are backups.
Offline
Thank you @Awebb. Yes I understand it is a backup, but created by who?
Offline
Your question strikes me as oddly worded.
Yes I see that now. What might've helped was specifying "Who creates these backup files" and "...resolve pacnew conflicts".
Offline
Thank you @Awebb. Yes I understand it is a backup, but created by who?
https://man.archlinux.org/man/shadow.5.en
/etc/shadow-Backup file for /etc/shadow.
Note that this file is used by the tools of the shadow toolsuite, but not by all user and password management tools.
Last edited by seth (2021-10-12 22:08:01)
Online
Seth, I'm getting a 404 error.
Offline
Copy and püaste ate it … fixed now.
Online
As I said, man 5 shadow and man 5 passwd. Are you familiar with man pages? If not, look up "man page" in our local wiki.
Offline