Closed JiffB closed 3 years ago
Is there any documentation stating that the shadow file is backed up each time passwd is run?
I'm having trouble seeing that anywhere in the source code or documentation. the shadow manpage just says the file is there and that some tools update it, but not much else.
@XECDesign Hmm, my bad, I dug my own doc and found an old note saying that /etc/shadow- is only updated when using vipw or update-passwd. Sorry for the noise.
No worries. I reached the same conclusion when digging through the source code of shadow tools, but was wondering if maybe I missed something.
Hi,
I just had a problem twice in a row, pi user p/w reset or change (usual p/w didn't work in the graphical input) ; after investigation, the backup file
/etc/shadow-
isn't updated after a p/w change :/ (should be the same timestamp as/etc/shadow
).Apparently, this weird behavior is quite recent (however IIRC, the 10/29 was also a p/w problem, may be the package date below is more relevant) :
NB: Here, 'la' shows files ctime.
Of course, the
base-passwd
package is also installed.Base on
/var/lib/dpkg/info/*passwd*ist\
:it might not be a direct bug but an interaction with I don't know what.