- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: To know when the user account has been created
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
10-20-2008 05:10 AM
10-20-2008 05:10 AM
To know when the user account has been created
I would like to know when the user account has been created in a hp-ux machine. Is it possible to get the time and date of when the user account has been created.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 05:31 AM
10-20-2008 05:31 AM
Re: To know when the user account has been created
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 05:35 AM
10-20-2008 05:35 AM
Re: To know when the user account has been created
I think there is database maintained in HPUX for user account creation timestamp. But you you can check the time stamp of the files created at the time of user creation. ie; Home directory of that user or any other related file.
Rgds
Sreekanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 05:37 AM
10-20-2008 05:37 AM
Re: To know when the user account has been created
You can keep a tag on the password file to
see when a change was made and check the difference with a snapshot of the previous version of the password file.
should be fairly easy to script,
conceptually like this:
ls -l passwd | cut timestamp
if timestamp = prevtimstampt
then
do nothing
else
diff passwd passwd.snapshot
fi
Run in cron every minute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 05:38 AM
10-20-2008 05:38 AM
Re: To know when the user account has been created
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 08:15 AM
10-20-2008 08:15 AM
Re: To know when the user account has been created
The answer depends on the sysadm style. If new users are created by SAM, you can look for these items in samlog, if there is a script for users creation, read it logfile, else take a look on the oldest file in users' directories.
I create users by a script and put creation date into /etc/passwd, together with the user's owner name and email. Also .forward file is created with the email in it.
HTH