HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can you find out when an account will expire.
Operating System - HP-UX
1833104
Members
3434
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-04-2005 03:53 AM
03-04-2005 03:53 AM
I am using trusted systems. 11.00 HP_UX
Expiration settings are done from a system level and the indivual users use the system defaults.
The system has to know on what day or how many days it will expire the account and I am looking for a way to obtain that data. I need to do it from the command line with no gui.
Thanks for any suggestions.
Expiration settings are done from a system level and the indivual users use the system defaults.
The system has to know on what day or how many days it will expire the account and I am looking for a way to obtain that data. I need to do it from the command line with no gui.
Thanks for any suggestions.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2005 04:03 AM
03-04-2005 04:03 AM
Solution
check this thread :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=9100
Regards
Jean-Luc
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=9100
Regards
Jean-Luc
fiat lux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2005 04:05 AM
03-04-2005 04:05 AM
Re: How can you find out when an account will expire.
The key to what you are trying to do is the getprpw command.
/usr/lbin/getprpw -m spwchg,exptm user
You got some math and parsing to do but that should get you started. Man getprpw for details. Notice how I neatly left the remainder as a student exercise (or maybe I just ain't smart enough to do it).
/usr/lbin/getprpw -m spwchg,exptm user
You got some math and parsing to do but that should get you started. Man getprpw for details. Notice how I neatly left the remainder as a student exercise (or maybe I just ain't smart enough to do it).
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2005 05:00 AM
03-04-2005 05:00 AM
Re: How can you find out when an account will expire.
The getprpw does not help since indivual accounts do not have password expiration settings in them. (value is all -1) They are set from the system. It appears that the best bet is to use C basically using the pr_passwd system call. Thanks.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP