Operating System - HP-UX
1833748 Members
2774 Online
110063 Solutions
New Discussion

command to check whether user password was expired or not

 
Anthony Yau
Occasional Contributor

command to check whether user password was expired or not

I want to write a shell script to check whether a user password was expired or not of a trusted system with password aging. Is there any command or method?
I want to know more and more.
2 REPLIES 2
federico_3
Honored Contributor

Re: command to check whether user password was expired or not

You can try:

/usr/sbin/logins -x -l username

for further informations see man logins



regards

Federico
Alex Glennie
Honored Contributor

Re: command to check whether user password was expired or not