I am trying to set the root password on Amazon EC2 (CentOS machine). When I try passwd, I get this:
[root@domU-11-33-39-00-85-21 ~]# passwd
Changing password for user root.
passwd: Authentication token manipulation error
What can I do to fix this? I know ssh is better but I need to set the password because I require it to login to my webmin.
Contents of /etc/nsswitch.conf:
passwd: files
shadow: files
group: files
#hosts: db files nisplus nis dns
hosts: files dns
# Example - obey only what nisplus tells us...
#services: nisplus [NOTFOUND=return] files
#networks: nisplus [NOTFOUND=return] files
#protocols: nisplus [NOTFOUND=return] files
#rpc: nisplus [NOTFOUND=return] files
#ethers: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: nisplus
publickey: nisplus
automount: files nisplus
aliases: files nisplus
When I tried passwd -d root
and then passwd
, I got to reset the password but I can't login using this password.
/etc/nsswitch.conf
from that system.