MYSYSAD.COM

Problem Changing the root Password

· Users & security

It was that time again. We had to change the root password. I changed it on the first workstation and it failed. Why? The /etc/nsswitch.conf file was initially setup for NIS+ and then files. I had to swap them.

Here's the error message: "passwd: Unsupported switch entry for "passwrd:", Use "-r repository". Unexpected failure. Password file/table unchanged.

Here's how it was setup.

passwd: nisplus files
group: nisplus files

Change to the following:
# vi /etc/nsswitch.conf
passwd: files nisplus
group: files nisplus
...
:wq! (saves and quits vi)

Then I proceeded with the root password change
# passwd root

...or as Cass pointed out

For Files
# passwd -r files root
# passwd -r file username

For NIS+
# passwd -r nisplus username