Security
cancel
Showing results for 
Search instead for 
Did you mean: 

Manually changed /etc/passwd but root has old PW

SOLVED
Go to solution
Andre Stewart
Frequent Advisor

Manually changed /etc/passwd but root has old PW

My Alpha systems are running standard security. I changed root's password on one system and then copied the /etc/passwd file to all other appropriate machines.

But the new PW doesn't work on the other machines; only the old one.

I've seen this problem before, but I don't remember the fix. I know it is simple and involves running some command to syncronize some other file with /etc/passwd.

Again, this system is running standard security (non-trusted) and NIS (but root is a local account).

Thanks
4 REPLIES
Andre Stewart
Frequent Advisor

Re: Manually changed /etc/passwd but root has old PW

The answer is that one needs to also pass around the /etc/passwd.pag file, also.

I copied that file from the original machine (which I used the "passwd" command on) to all the other Alphas, and all is well.
Ann Majeske
Honored Contributor
Solution

Re: Manually changed /etc/passwd but root has old PW

The command to create the database files (.pag and .dir) is /usr/sbin/mkpasswd. Or you can just delete the .pag and .dir files. Or do a vipw on each system and make an innocuous change. Or...

The problem with just copying the .pag file from system to system is if any of the other user's accounts are different you'll mess them up.

Ann
Andre Stewart
Frequent Advisor

Re: Manually changed /etc/passwd but root has old PW

No, they are all the same. That was the idea.

Andre
Andre Stewart
Frequent Advisor

Re: Manually changed /etc/passwd but root has old PW

See previous posts.