Operating System - HP-UX
1836460 Members
2411 Online
110101 Solutions
New Discussion

Re: 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