- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Time Stamp for root password change
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
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
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-04-2012 04:49 AM
02-04-2012 04:49 AM
Time Stamp for root password change
Hi,
from which file i can get this message on HP-UX 11.31 trusted system, where this message appeared when i try to change user password.
>>>>>>>>>>>>>>>>>>>>
# passwd mousa
Last successful password change for mousa: Sat Feb 4 15:13:57 2012
Last unsuccessful password change for mousa: NEVER
<<<<<<<<<<<<<<<<<<<<
please i need the full path of this file.
Thanks
- Tags:
- Password
- trusted mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2012 06:09 AM
02-04-2012 06:09 AM
Re: Time Stamp for root password change
The timestamp is stored in the trusted mode password file for that particular user, i.e. /tcb/files/auth/r/root. These values are identified with keywords u_succhg and u_unsucchg.
As the timestamps are encoded in the standard UNIX time_t format, it might be easier to view them with the "getprpw" command:
getprpw -m spwchg,upwchg
The standard command to modify trusted mode user attributes is modprpw, however that command cannot modify these attributes, since the attributes are supposed to reflect the true history of the account/password.
- Tags:
- getprpw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2012 08:42 PM
02-04-2012 08:42 PM
Re: Time Stamp for root password change
Hi,
Thank you for your support, but i don't want to use any command to know that.
is there any file saves the last successfully password change for any user by date and time as following
>>>>>>>>>>>>>>>>>>>>
# passwd mousa
Last successful password change for mousa: Sat Feb 4 15:13:57 2012
Last unsuccessful password change for mousa: NEVER
<<<<<<<<<<<<<<<<<<<<
mousa:u_name=mousa:u_id#114:\
:u_pwd=Ix5T6jQ1AHeA6:\
:u_auditid#25:\
:u_auditflag#1:\
:u_succhg#1328359802:u_pwchanger=root:u_suclog#1328357554:u_lock@:\
:chkent:
or is there any way to decode the encode time stamp (:u_succhg#1328359802)
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2012 09:05 PM - edited 02-04-2012 09:10 PM
02-04-2012 09:05 PM - edited 02-04-2012 09:10 PM
Re: Time Stamp for root password change
>but I don't want to use any command to know that.
What command or executable do you want to use?
>is there any file saves the last successfully password change for any user by date and time as following
No, it is saved in the file mentioned by Matti in time_t format.
>is there any way to decode the encode time stamp (:u_succhg#1328359802)
How about getprpw(1m)?
Otherwise you can look at this topic:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2012 05:45 PM
02-18-2012 05:45 PM
Re: Time Stamp for root password change
The time stamps in the Trusted system database are in Unix Epoch time, that is, the number of seconds since Jan 1, 1970. Decode Epoch seconds like this-
# perl -le "print scalar localtime(1328359802)"
Sat Feb 4 07:50:02 2012
# perl -le "print scalar localtime(1328357554)"
Sat Feb 4 07:12:34 2012
Bill Hassell, sysadmin