Operating System - HP-UX
1827593 Members
2962 Online
109965 Solutions
New Discussion

Re: NIS password - change on the next logon

 
vytasgadliauskas
New Member

NIS password - change on the next logon

Hi

How to setup NIS password to change on the next logon.
In local its just add ,.. at he end of the passwd field in /etc/passwd.

But in NIS it downt works after change of the password thiese simbols do not disapiers they just are added to the end of the new password
3 REPLIES 3
Andy Torres
Trusted Contributor

Re: NIS password - change on the next logon

I think the normal "passwd -f" command can be used as long as you specify the -r option with nis or nisplus, whichever applies. See the man page on passwd for details.
vytasgadliauskas
New Member

Re: NIS password - change on the next logon

Yes it woud be a solution but then you specifying it woudnt works becouse this combination is not suported.
Andy Torres
Trusted Contributor

Re: NIS password - change on the next logon

Sorry for the slow reply. I evacuated from the stupid hurricane.

Yes, I see that the -f and -r are not compatible in the man page now. Sorry to mislead you.

If passwd -f doesn't work (shouldn't it?) then I usually edit the passwd file manually, as you have already done. Remember to run ypmake after. Not sure what to troubleshoot after that.