- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Determining expired password
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
05-09-2002 11:38 PM
05-09-2002 11:38 PM
Determining expired password
I need to determine when a password has expired.
Where can I find information about the password field of /etc/passwd file ?
Thanks and best regards.
Rafa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 11:42 PM
05-09-2002 11:42 PM
Re: Determining expired password
# man 4 passwd
This gives all of the codes needed. If your system is trusted you need to look at the 'getprpw' man page. Here is the link to where you can find it. By default this man page is not installed.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe505a22d6d27d5118fef0090279cd0f9,00.html
Cheers
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 01:50 AM
05-10-2002 01:50 AM
Re: Determining expired password
Do a "man 4 passwd", this should explain the expiration characters.
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 02:49 AM
05-10-2002 02:49 AM
Re: Determining expired password
See the following thread, in particular, A. Clay Stephenson's response may prove useful:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x82afba808b46d611abda0090277a778c,00.html
HTH,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 12:11 AM
05-13-2002 12:11 AM
Re: Determining expired password
/usr/lbin/getprpw -r -m spwchg $USER| tr - s " "|cut -d" " -f5
And if it returns 1970 the password is expired. There is probably a simpler way of doing this but it works for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 09:46 AM
05-13-2002 09:46 AM
Re: Determining expired password
logins -x -l username
The response will be in the foll format
username,IT,,
/home/username
/usr/bin/sh
PS 040302 14 182 -1
The above ..
1- password last change on 04/03/02
2- minimum time between changes 14 days
3- password expiration 182 days