Operating System - HP-UX
1830648 Members
2782 Online
110015 Solutions
New Discussion

How to activate "passwd -s" to show aging information

 
SOLVED
Go to solution
Guus van Luijn
Occasional Advisor

How to activate "passwd -s" to show aging information

I'm a non-root user and I need to know when my password will expire in advance.
Therefor I would like to use the command "passwd -s" to show me the date when the password will expire.
On my system the command returns:
$ passwd -s
cvanlui LK
indicating the password is Locked (I use ssh with certificates to logon)
My question: What needs to be done (on a system level I suppose) in order for the "passwd -s command to show me the aging information.
6 REPLIES 6
Arturo Galbiati
Esteemed Contributor
Steven E. Protter
Exalted Contributor

Re: How to activate "passwd -s" to show aging information

Shalom,

Try,

passwd -sa

by itself my 11.00 machine says passwd -s is deprecated. Not good. -sa should give you what you need.

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
Guus van Luijn
Occasional Advisor

Re: How to activate "passwd -s" to show aging information

Hi Steven,

I tried passwd -sa and I get a permission denied. I suppose I have to be root for that.
Arunvijai_4
Honored Contributor

Re: How to activate "passwd -s" to show aging information

Hello,

You can get some information from, # man passwd. You have to be root to use -sa option.

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
Senthil Prabu.S_1
Trusted Contributor

Re: How to activate "passwd -s" to show aging information

Hi,
I guess that one must be privilegded user to execute passwd -Sa. Regular users will not have permission it use it.
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Nguyen Anh Tien
Honored Contributor
Solution

Re: How to activate "passwd -s" to show aging information

Enter SAM-> Account for user and Groups->User -> add user
Choose aging buttion and input information you want
HP is simple