Operating System - HP-UX
1753549 Members
5438 Online
108795 Solutions
New Discussion юеВ

Re: How to set non expiry password

 
raiden
Regular Advisor

How to set non expiry password

Tomorrow Following security policies are to be set in the security file of one of our Server.

NUMBER_OF_LOGINS_ALLOWED=3
MIN_PASSWORD_LENGTH=8
PASSWORD_HISTORY_DEPTH=5
PASSWORD_MIN_UPPER_CASE_CHARS=1
PASSWORD_MIN_LOWER_CASE_CHARS=1
PASSWORD_MIN_DIGIT_CHARS=1
PASSWORD_MIN_SPECIAL_CHARS=1
PASSWORD_MAXDAYS=90
PASSWORD_WARNDAYS=7

As per the policy the password will expire in 90 days.

Can you tell me how do I set an account to not expire. Is the below command right

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

The System is trusted.


5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: How to set non expiry password

Shalom,

I think the command should work.

sam has a really cute feature.

Do the transaction in sam and then look at the sam command log and you will see if your command above will work. After doing anything in sam there is a command view feature that will let you know what sam did to complete the transaction.

This is an excellent learning tool.

Or simply run a test.

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
raiden
Regular Advisor

Re: How to set non expiry password

Thanks Steven ..But I really need a confirmation that this command will work since this is a production system and the IDS which I dont want to expire are oracle and Application ID's.

I dont want anything to go wrong .. Kindly confirm
raiden
Regular Advisor

Re: How to set non expiry password

Any replies
Yashwant
Valued Contributor

Re: How to set non expiry password

SAM is good option for non expiry password


for trusted
Non expire in number of days?
# /usr/lbin/modprpw -m exptm=0 root

untrusted
# passwd -x 0

Refer following link for more details.

http://forums11.itrc.hp.com/service/forums/questionanswer.do;HP-FORUMS-S-WPA-IDX=HSlcFZ78VGhrGlGKdQfJTwDS1mZ0LHBfvL3fvJhhJwKy1FvczWn5!-1259521774!-1205908035?threadId=742444
Tingli
Esteemed Contributor

Re: How to set non expiry password

Should the untrusted system the command is:

passwd -x -1