Operating System - HP-UX
1834142 Members
2304 Online
110064 Solutions
New Discussion

Re: forcing new password with passwd command

 
Ryan Kostohryz
Occasional Contributor

forcing new password with passwd command

The box I work on was recently upgraded from HP-UX B.10.20 to HP-UX B.11.00. With 10.20 the command "/bin/passwd -f -x " worked fine to force the user to change their password when they first log in and the every X number of days. Now with 11.00 it does not force the user to change their password when they first log in. I have to enter two separate commands "/bin/passwd -f " and then "/bin/passwd -x " to accomplish the same thing.
The 'repository' option is new to passwd and I don't really understand its purpose. The /etc/nsswitch.conf file just has the following line:
hosts: files [NOTFOUND=continue] dns

Anyone know how I can accomplish this with one command again? Thanks for any help!
1 REPLY 1
Dan Hetzel
Honored Contributor

Re: forcing new password with passwd command

Hi Ryan,

I'm running 11.0, and the command 'passwd -f -x nn username' works as expected.

If you don't specify a repository, it will update the /etc/passwd file.

Best regards,

Dan


Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com