1830622 Members
2226 Online
110015 Solutions
New Discussion

Password

 
SOLVED
Go to solution
Global Server Operation
Frequent Advisor

Password

Is there a Unix command to see when I changed my password last time.

Can this command be used by non root users

OS=11.i
4 REPLIES 4
Marco Santerre
Honored Contributor
Solution

Re: Password

In a trusted mode environment, you can issue the command /usr/lbin/getprpw to get this info.

The command and parm to use would look as follow :

/usr/lbin/getprpw -m spwchg username
Cooperation is doing with a smile what you have to do anyhow.
Global Server Operation
Frequent Advisor

Re: Password

Thank you, I will give it a try. Can a non root user use this as well?
Marco Santerre
Honored Contributor

Re: Password

Nope.. only superuser can issue that command.. unless you put it in a sudo
Cooperation is doing with a smile what you have to do anyhow.
john kingsley
Honored Contributor

Re: Password

You can also run:
logins -x -l
passwd -s -a

You must be root to run these as well.