passwd: Authentication token manipulation error

Centos

[[email protected] ~]# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: Authentication token manipulation error

solved

[[email protected] ~]# /usr/sbin/useradd aa useradd: unable to open password file
[[email protected] ~]# chattr -i /etc/passwd
[[email protected] ~]# /usr/sbin/useradd aa
useradd: cannot open shadow password file
[[email protected] ~]# lsattr /etc/passwd ————– /etc/passwd
[[email protected] ~]# lsattr /etc/shadow —-i——— /etc/shadow
[[email protected] ~]# chattr -i /etc/shadow
[[email protected] ~]# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[[email protected] ~]

Leave a Reply