- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Retrieving password expiering date
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 12:03 AM
12-02-2003 12:03 AM
How can i retrieve the password expiering date of a users password.
I'm using a non trusted system and no NIS.
I was testing with the output of passwd -a -s but what i thought to be a date (the 11/27/03 part) "bz99999 PS 11/27/03 0 7" seems to be something else.
I've started testing on 27 November 2003 :`-)
Can someone help me ?
I want to be 1 step ahead of the regular password changing sceme of login and rlogin.
Klaas Eenkhoorn
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 12:05 AM
12-02-2003 12:05 AM
Re: Retrieving password expiering date
logins -a should do it.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 12:42 AM
12-02-2003 12:42 AM
Re: Retrieving password expiering date
"bz99999 3101 group 105 Test login,,, -1 000000"
Where is the date ?
Kl@@S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 01:19 AM
12-02-2003 01:19 AM
SolutionSorry, but I made a mistake. You should rather use -x :
exemple :
foo:O74257ZI2iaLA,M.UP:....
This user has M.UP as password aging string.
M means 24 weeks (168 days) before expiration
. means 0
UP is the last change date
Login -x -l foo gives for the last line :
PS 092503 0 168 -1
PS --> valid password
092503 --> last pasword change (derived from UP)
168 --> numbers of days between passord changes (derived from M).
So change will occur a last on september 15 2003 + 168 days ...
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 01:19 AM
12-02-2003 01:19 AM
Re: Retrieving password expiering date
The output of passwd -a is "bz99999 PS 11/27/03 0 7".
A non trusted system calculates it's dates in weeks and it's weeks start on Theursday.
This means that login or rlogin will allways ask for a new password on Theursday ???
If a password is valid for example 14 day's (two whole weeks) and if i change this password on 2 December 2003 the date recorded in the passwd file will be 27 November 2003. (the first previous Theursday)
And the date the password expieres will be 11 December 2003 ???
Am i right ??
Klaas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2003 01:33 AM
12-02-2003 01:33 AM
Re: Retrieving password expiering date
I agree ... Your passwd aging field begin with something like ',0.' for this user (see man 4 passwd)
Regards.