- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: getprpw and SAM
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
Discussions
Discussions
Forums
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
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
тАО04-30-2008 08:11 AM
тАО04-30-2008 08:11 AM
getprpw and SAM
When I run
/usr/lbin/getprpw -l -r -m exptm enleonti
-1
I am getting -1 i.e this field does not exist in a database, but the SAM shows 90 days. Why the command does not work?
HP-UX 11.23 ia64
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 09:34 AM
тАО04-30-2008 09:34 AM
Re: getprpw and SAM
You can try to without "-m" option to see if it give you all the parameters values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 10:23 AM
тАО04-30-2008 10:23 AM
Re: getprpw and SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 12:48 PM
тАО04-30-2008 12:48 PM
Re: getprpw and SAM
Cheers John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 01:19 PM
тАО04-30-2008 01:19 PM
Re: getprpw and SAM
Actually the '-1' means that your account is using the "default" value set for exptm. The default is kept in /tcb/files/auth/system/default. The field in this file is 'u_exp'.
u_exp is in seconds I believe so for example;
u_exp#7776000 = (((7776000 / 60)/60)/24) = 90 days.
As already mentioned, these tools are really only supported via SAM. We use them all the time in scripts, but it's unsupported.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 01:24 PM
тАО04-30-2008 01:24 PM
Re: getprpw and SAM
exptm=value database u_exp=(value*86400).
Set password expiration time interval (days).
0 = expired. Same as non-trusted mode
maximum time.
It says here that u_exp=(value*86400). The value is your 'days'. So 90*86400=7776000. That's a bit easier to work with so just take your u_exp and divide by 86400 to get the number of days.
There is also additional information in the prpwd man page.
David