Operating System - HP-UX
1834789 Members
2986 Online
110070 Solutions
New Discussion

Re: Check user with no password aging

 
Starrynight
Advisor

Check user with no password aging

Hello everybody

I would like to know if anyone of you know how can I check all users with no password aging in a system.

Thanks in advanced
SN
System administrator
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Check user with no password aging

A good start would be the passwd -sa command.

This produces a report with dates and you can use grep or awk to parse the output and list only those users that have not changed their passwords or do not have aging.

passwd -sa

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
Zigor Buruaga
Esteemed Contributor

Re: Check user with no password aging

Hi,

Maybe the command "logins -x" can help you.
Do a "man logins" for detailed info.

Hope this helps.
Kind regards,
Zigor
Joyce Suganthy
Advisor

Re: Check user with no password aging

Hi SN,

Please find attached is a script i created to get the password aging information for each user in a particular server.

the command that should be used is
/usr/lbin/getprpw -m mintm,exptm,expwarn,lftm

mintm = minimum time between password changes
exptm = password expiration time
expwarn = password expiration warning time
lftm = password lifetime

If all the values = 0 like below
mintm=0, exptm=0, expwarn=0, lftm=0

then the user does not have a password aging, the aging has been disabled...

I hope this helps

Regards