Operating System - HP-UX
1834080 Members
2934 Online
110063 Solutions
New Discussion

Password aging: new users on 11i v2

 
ITeam
Super Advisor

Password aging: new users on 11i v2

Hi everyone,

I am currently trying to realise the scenario whereby all newly created users have password aging enabled. This is on an untrusted sytem.

I have previously enabled password aging on existing users using the 'passwd -x' command but am finding much of the information on how to enable this for all new users, quite frankly, confusing!

I have read details on the /etc/default/security file but I need to know that every user created from now on will be prompted (for eg) to change their password in 30 days.

Many thanks in advance.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Password aging: new users on 11i v2

Shalom,

To be certain your user creation script can use the passwd command to do just that.

-x or -y 30 confirm on the man page.


More
http://docs.hp.com/en/5992-3387/ch02s05.html

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
Tingli
Esteemed Contributor

Re: Password aging: new users on 11i v2

You can try those two commands for all the new users (/etc/default/security is for trusted system only):
/bin/passwd -r files -x 30 $USER_NAME
/bin/passwd -r files -f $USER_NAME
ITeam
Super Advisor

Re: Password aging: new users on 11i v2

Thanks for the responses. I have solved this problem by amending the user copy application to include 'passwd -x', etc.