1754379 Members
4096 Online
108813 Solutions
New Discussion юеВ

expiring password

 
SOLVED
Go to solution
Nanda M
Advisor

expiring password

Hi,

How to find user has an expiring password on 11.23,
3 REPLIES 3
Suraj K Sankari
Honored Contributor

Re: expiring password

Hi,
passwd -sa username

or in trusted system

/usr/lbin/modprpw -k username will unlock an account.

/usr/lbin/modprpw -l -m exptm=0 username will remove the password expiry.

Both of these can be done through SAM's User and Account manager if you prefer that way.

Suraj
Jean-Luc Oudart
Honored Contributor
Solution

Re: expiring password

passwd -s

-s name

Display some password attributes associated with the specified name. Superuser privilege and non-trusted mode is required if the files repository is specified. For nisplus, there are no restrictions.

The format of the display will be:

name status mm/dd/yy min max warn

or, if password aging information is not present

name status

where status means: PS =passworded; LK =locked; and NP =no password.

cf. doc http://docs.hp.com/en/B3921-90010/passwd.1.html

Regards
Jean-Luc
fiat lux
Ganesan R
Honored Contributor

Re: expiring password

Hi,

#passwd -s

The above command should list the expiring details. If it doesn't list the dates, means the account does not have set expiring date.

If it is a trusted system use getprpw command.

# /usr/lbin/getprpw

This command should list the below valuse of that paritcular account.

exptm ==> Password Expiration Time (days)
expwarn ==> Password Expiration Warning Time (days)
lftm ==> Password Life Time (days)
mintm ==> Time Between Password Changes (days)
Best wishes,

Ganesh.