Operating System - HP-UX
1832145 Members
2876 Online
110038 Solutions
New Discussion

trusted system - using modprw to prevent password expiry

 
SOLVED
Go to solution
Adam Noble
Super Advisor

trusted system - using modprw to prevent password expiry

Hi all,

Is the appropriate command to prevent password expiry for a user:-

/usr/lbin/modprpw -m u_minchg=0 u_exp=0 u_life=0 u_pw_expire_warning=0.

Cheers
3 REPLIES 3
Adam Noble
Super Advisor

Re: trusted system - using modprw to prevent password expiry

Apologies I appreciate the above is incorrect but do I need to specify the relative values which change the above database values. In otherwords is it still these 4 database values that need changing...
G V R Shankar
Valued Contributor
Solution

Re: trusted system - using modprw to prevent password expiry

Hi,
Following command is used to set users password to never expire.

/usr/lbin/modprpw -l -m mintm=0,exptm=0,expwarn=0,lftm=0 ABCD

/usr/lbin/getprpw ABCD
uid=192, bootpw=NO, audid=458, audflg=1, mintm=0, maxpwln=-1, exptm=0, lftm=0, spwchg=Sun Dec 3 02:36:53 2006, upwchg=-1, acctexp=-1, llog=-1, expwarn=0, usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Sun Dec 3 02:59:41 2006, ulogint=-1, sloginy=tty, culogin=-1, uloginy=-1, umaxlntr=-1, alock=NO, lockout=0000000

ABCD is the user account.

Regards,
Ravi.
Robert Fritz
Regular Advisor

Re: trusted system - using modprw to prevent password expiry

Also note that password expiry can be set and cleared in standard mode now in 11.23 (when Standard-Mode Security Extensions are installed). The command to use is userdbset. You can look at /etc/security.dsc for a matrix of the available settings and the applicable places they can be configured.
Those Who Would Sacrifice Liberty for Security Deserve Neither." - Benjamin Franklin