effing linux: /etc/shadow out of sync with /etc/passwd
Posted: Fri Jul 18, 2008 5:44 pm
Strange, strange, strange request this week, custom removal of users for UID number sequence preservation. Had to clean the group, passwd and shadow files.
Am now getting the feeling that shadow and passwd are out of sync.
This is what happens when setting passwd for newly added users:
passwd: Authentication token manipulation error
perms look right:
-r-------- 1 root root 1.5K Jul 16 15:40 /etc/shadow
google doesn't like me tonight
Existing logins still work. Missing something here, i just know it. Reboot is not an option at this point.
Tried chattr -i on the file, re-running the passwd command and sweet mother buttpunch, it still didn't work.
Missing something, and it's probably stupid ey
edit: Odd to note that if the shadow file logins are forcefully added to match the passwd file, followed by like ::::: or something (no ws), system will allow password updates. This doesn't address the foreseeable future problem of new account creation, though.
Am now getting the feeling that shadow and passwd are out of sync.
This is what happens when setting passwd for newly added users:
passwd: Authentication token manipulation error
perms look right:
-r-------- 1 root root 1.5K Jul 16 15:40 /etc/shadow
google doesn't like me tonight

Existing logins still work. Missing something here, i just know it. Reboot is not an option at this point.
Tried chattr -i on the file, re-running the passwd command and sweet mother buttpunch, it still didn't work.
Missing something, and it's probably stupid ey

edit: Odd to note that if the shadow file logins are forcefully added to match the passwd file, followed by like ::::: or something (no ws), system will allow password updates. This doesn't address the foreseeable future problem of new account creation, though.
