HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Password never expire

 
unixguy_1
Regular Advisor

Password never expire


Our OS is HP-UX 11.31

we have already set the never expire to below mentioned user.
but user is getting the error message like

"passowrd is expire in 1 days"

how we can resolve this type of issue.

if we set never expire to user accoutn , how we can identify that user account is already having never expiration.

please anyone pls help on this issue.

advance thanks...........

7 REPLIES
Rita C Workman
Honored Contributor

Re: Password never expire

Did you check the /etc/default/security file.

On 11.31 for standard and shadow it has a default value set for:

PASSWORD_MAXDAYS=175
PASSWORD_MINDAYS=14

and
PASSWORD_WARNDAYS=14

Check that file - remember that even though you see the value rem'd out - it is the default value set.

So for your 'accoutn' user, you might set them to ~_MAXDAYS=441 (which is the highest value - See man 4 security) or to disable them you would enter for that user ~_MAXDAYS=-1

Regards,
Rita
Tingli
Esteemed Contributor

Re: Password never expire

Is this a trusted system or not?
unixguy_1
Regular Advisor

Re: Password never expire

this is truested system, how to resolve this issue.

Johnson Punniyalingam
Honored Contributor

Re: Password never expire

>>this is truested system, how to resolve this issue.<<<

/usr/lbin/getprpw -l

will give more information about the password expire of user account
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: Password never expire

first check the output from the above command
and look for password expire day - if its shows something password will expire praticluar date that the account has not been set for you can use SAM to -> check about "User Account" policies.
Problems are common to all, but attitude makes the difference
madhudeepan
Frequent Advisor

Re: Password never expire

hi

#cd /usr/lbin

#modprpw -m exptm=0,lftm=0 username

this will set lifetime to infinty and password willnever expiry

and check with below cmd before and after issuing modprpw , u can find the difference

#/usr/lbin/getprpw -l username
rariasn
Honored Contributor

Re: Password never expire

Hi,

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

rgds,