On Sat, Jun 01, 2019 at 07:52:38AM +0200, pelzflorian (Florian Pelz) wrote: > I wonder what would change /etc/shadow. >
If the error occurred on common non-Guix distros, it hopefully would have been fixed before, maybe. Of course Guix recreates /etc/shadow much more frequently. Guix appears to add shadow files atomically in gnu/build/accounts.scm. I do not know if there could have been an error reading the old shadow file, e.g. because it is locked or something? The elogind source code in src/basic/user-util.c contains code for locking /etc/shadow, with a comment that explains why its lckpwdf is implemented differently from shadow-utils. AccountsService appears to only be usable for reading /etc/shadow, not for writing it, contrary to what the Guix manual claims (??). For writing passwords, gnome-control-center does not use AccountsService, it calls /usr/bin/passwd directly in its source code in panels/user-accounts/run-passwd.c. Regards, Florian
