Operating System - HP-UX
1836412 Members
2313 Online
110100 Solutions
New Discussion

Re: NIS- Password problem

 
Jerry P Antony_2
Occasional Advisor

NIS- Password problem

Set up
HP 9000- C3600 workstation
HP Unix 11.0
NIS server
I am trying to reset the user password in NIS after login as root with yppasswd command.But system is asking for the old NIS password of the user.

Need your help in solving this problem
Thanks in advance
Jerry
2 REPLIES 2
Ermin Borovac
Honored Contributor

Re: NIS- Password problem

Assuming that NIS passwords are kept in /etc/passwd on NIS server try

# passwd -r files -F /etc/passwd
# cd /var/yp
# make passwd
Jino.P.V
Frequent Advisor

Re: NIS- Password problem

Hi jerry,
On a client root
could easily be spoofed since NIS has no method of authenticating if this is a
validated client/user/root user. If your NIS master is an HP-UX 10.x, root can use the 'expire password'
functionality in the password field by blanking this field out in the
respective NIS password file.

EXAMPLE:
juser::749:20:Jerry user:/home/juser:/usr/bin/ksh

Or if you are using an HP-UX 11.x, you can change the users password on the
master using the HP-UX 10x method or use the command:

/usr/bin/passwd -r files -F /etc/passwd [username]

If you are using a non-standard password file, other than (/etc/passwd), just
be sure to replace the proper path and name of the password file in the
previous command.

:)
Jino