Operating System - HP-UX
1834658 Members
2878 Online
110069 Solutions
New Discussion

Unable to change password

 
Bill Schultz
New Member

Unable to change password

HP-UX 11i.

User was prompted to change his password upon login. Received the following error:

Your password has expired.
Warning: Your password has expired, please change it now
Changing password for davisrj
Old password:
Sorry.
Removing root credentials would break the rpc services that
use secure rpc on this host!
root may use keylogout -f to do this (at your own risk)!


There is only one UID entry in /etc/passwd so I don't think it is a multiple entry problem but when I do :

finger $uid, I get a different users login.

Thanks. Bill
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Unable to change password

run this

pwchk

grpck

Check the integrity of the /etc/passwd file.

Is the system trusted?

If so, do this from the console:
/usr/lbin/modprpw -l -k username

passwd

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Schultz
New Member

Re: Unable to change password

I did what you suggested, I had already done that, but the finger problem still exist. If I do finger $uid, I get one user but if
I do finger $userid, I get the correct user.
Darren Prior
Honored Contributor

Re: Unable to change password

Hi Bill,

If this is a trusted box, then authck -pv would be worth running in case there's a mismatch between the trusted data and /etc/passwd.

Otherwise - do you use NIS or have you made changed to pam.conf?

regards,

Darren.
Calm down. It's only ones and zeros...
Bill Schultz
New Member

Re: Unable to change password

I figured it out. Because finger shouldn't come back with a userid when you give it a UID I looked at the entry for the userid that kept coming back. There was an extra space in the entry in /etc/passwd.

Goofy...