Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing root password: permission denied

Status
Not open for further replies.

Soladm

IS-IT--Management
Jan 10, 2002
48
0
0
I am unable to change the root password after logging in to the system using the passwd command. When attempting to change the password using the command:

# passwd root

I get a permission denied error.

Any suggestions or ideas would be appreciated.
Thanks!!

Have a Great Day!! :)
~Sol
Sys Admin
 
what are the file permissions of your /etc/passwd and /etc/shadow files?



Blue [dragon]

If I wasn't Blue, I would just be a Dragon...
 
I found that the passwd -r files command worked to change the password. After more digging and a second and third look at the nsswitch.conf file, I found that towards the bottom of the file there were a couple of entries that had nis first instead of files. After changing these entries all was fine.



Have a Great Day!! :)
~Sol
Sys Admin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top