Operating System - HP-UX
1832921 Members
2630 Online
110048 Solutions
New Discussion

Re: Disable password aging from command line

 
Craig A. Sharp
Super Advisor

Disable password aging from command line

Is there a way to do this?
3 REPLIES 3
Aussan
Respected Contributor

Re: Disable password aging from command line

Hi Craig

Sam would be better but if you need to do it from command line here it is

/usr/lbin/modprpw -m exptm=0,lftm=0,expwarn=0,llog=0


Regards

Aussan
The tongue weighs practically nothing, but so few people can hold it
Aussan
Respected Contributor

Re: Disable password aging from command line

forgot to put the user name at the end

/usr/lbin/modprpw -m exptm=0,lftm=0,expwarn=0,llog=0


Regards

Aussan
The tongue weighs practically nothing, but so few people can hold it
Bill Hassell
Honored Contributor

Re: Disable password aging from command line

You can also do this with the passwd command (-n -w and -x options).


Bill Hassell, sysadmin