- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Query password expiration?
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
02-07-2007 04:19 AM
02-07-2007 04:19 AM
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 04:29 AM
02-07-2007 04:29 AM
Re: Query password expiration?
The report from passwd -sa may be helpful.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 04:45 AM
02-07-2007 04:45 AM
Re: Query password expiration?
jashaieb PS
I was looking more for pulling info out of getprpwent, but looks like fd_expire is equal to '0' on all users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 08:57 PM
02-07-2007 08:57 PM
Re: Query password expiration?
you can use pwage.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 09:12 PM
02-07-2007 09:12 PM
Re: Query password expiration?
you you want I can provide youa script which uses pwage.
Let me know.
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2007 02:19 AM
02-08-2007 02:19 AM
Re: Query password expiration?
I do not see pwage on the server .. 11.i v1
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2007 02:39 AM
02-08-2007 02:39 AM
SolutionI hope I understand your request correctly:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=847387
See Bill's answer/script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2007 03:27 AM
02-08-2007 03:27 AM
Re: Query password expiration?
I did make one change. I changed '$PWDAYSLEFT -gt 1' to '-gt 0' so I can locate the userids whose passwords have already expired.
PWCHGDATE="$(echo 0d${SECS2EXP}=Y \
| adb \
| cut -c 3-13 \
| awk '{print $2,$3,$1}')"
if [ $PWDAYSLEFT -gt 0 ]
then
print "Password expires in $PWDAYSLEFT days ($PWCHGDATE)"
else
print "Password expired"
fi
Thanks again