- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: System Default Inactive Time Setting
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
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
01-20-2005 06:20 AM
01-20-2005 06:20 AM
I'm trying to write a script that returns a list of users along with their Inactive Time, Password Expirty Time, Password Life time etc. I can do that using getprpw command and the respective -m options. But for cases where I get a -1, it actually means that the entry was not found in the database and which in turn I assume, means that the user takes the setting from system default.
My question now, is how can i get system default settings like Inactive period, password life etc through commandline.
Regards
Nell
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 06:33 AM
01-20-2005 06:33 AM
Re: System Default Inactive Time Setting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 06:34 AM
01-20-2005 06:34 AM
Re: System Default Inactive Time Setting
Correct -1 is default.
exptm = Password Expiration Time (default is 180 days)
lftm = Password Life time (default is 210 days)
expwarn = Password Expiration Warning Time (default is 21 days)
mintm = Time between password changes (default is 60 days)
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 06:40 AM
01-20-2005 06:40 AM
Re: System Default Inactive Time Setting
I did find the system default values, even before I started this thread,in the /tcb/files/auth/system/default file. But I dont have a direct answer to my question in that file since the entry that im concerned with is
:u_llogin#7776000 which is how the value 90 is represented. How can read this value from the file into meaningful number of days.
Regards
Nellian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 06:49 AM
01-20-2005 06:49 AM
Re: System Default Inactive Time Setting
nuber of seconds / seconds per day
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 06:50 AM
01-20-2005 06:50 AM
SolutionIn your example:
7776000 / 86400 = 90
Other time values are stored as the number of seconds since 1-1-1970 00:00:00 UCT (epoch seconds). To cenvert these:
perl -e 'print scalar localtime(xxxxxx)'
where xxxxxx is the epoch seconds value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 07:02 AM
01-20-2005 07:02 AM
Re: System Default Inactive Time Setting
There is an example of a script, check below page.
Trusted system - How to find user's passwords about to expire
Document id: USECKBAN00000934
US
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000074740865
Europe
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000074740865
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 07:37 AM
01-20-2005 07:37 AM