Operating System - HP-UX
1848549 Members
7560 Online
104033 Solutions
New Discussion

problem changing user passwords

 
Monica Goodson
Occasional Contributor

problem changing user passwords

I'm having a problem changing user passwords as root in an NIS environment. Here's the scenario
1. I log in as root
2. I type passwd username
(this is when the system prompts me to enter the user's old NIS password)

I had the same problem with SAM but the problem was solved once I installed the latest SAM patch.

Any ideas or suggestions would be greatly appreciated.

Thanks,
Monica
4 REPLIES 4
Rodney Hills
Honored Contributor

Re: problem changing user passwords

Greetings...

I believe to change to NIS password, you should use the command "yppasswd". Works like "passwd", but changes the NIS.
There be dragons...
Dan Hetzel
Honored Contributor

Re: problem changing user passwords

Hi Monica,

The 'passwd' command will only modify local passwords (in /etc/passwd file)

You'll need 'yppasswd' to change the NIS password (YP stands for Yellow Pages, the original name for NIS)

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Sandor Horvath_2
Valued Contributor

Re: problem changing user passwords

Hi !

You can modify user password this way but only in NIS master server, but after this You need distribute it with ypmake passwd.

The official way is yppasswd.

regards, Saa
If no problem, don't fixed it.
Monica Goodson
Occasional Contributor

Re: problem changing user passwords

Thanks Rodney, Dan, and Saa for the quick response. I think somewhere along the way, HP made changes to allow NIS password changes with "passwd" or "yppasswd". I've changed passwords using both commands and it has always worked in the past. Unfortunately, using yppasswd this time didn't make a difference.