- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to view created date of the one user id in...
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-22-2010 05:27 AM
тАО04-22-2010 05:27 AM
I need to view created date of the one user id in HPUX and Linux.
Is it possible?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2010 05:33 AM
тАО04-22-2010 05:33 AM
Re: How to view created date of the one user id in HPUX and Linux?
Unix neither has nor keeps a "creation date".
In Unix, the closest you come to a creation timestamp is the modification ('mtime') value. At the moment a file is first established, its 'mtime' represents a creation timestamp. Thereafter, any change to the data is reflected in an updated 'mtime'.
For directories, the 'mtime' changes when files and subdirectories are added or removed.
Hence, unless you *document* the creation moment, you are left with only inferences to describe its birthday.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2010 05:54 AM
тАО04-22-2010 05:54 AM
Re: How to view created date of the one user id in HPUX and Linux?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2010 08:43 AM
тАО04-22-2010 08:43 AM
SolutionI would suggest that passwd -sa can provide you some of what you want.
If your system is trusted, you might want to look at the audit database for more information.
The create time of the user .profile in Linux or .bashrc and other files is a good indicator of create time, unless of course the user name was re-used.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2010 09:32 AM
тАО04-22-2010 09:32 AM
Re: How to view created date of the one user id in HPUX and Linux?
In hp-ux , it is hard to find out user creation date but you can those mentioned above :
Also try:
# finger username
-It will give you some clue.
-If the user never logged in you can find the creation date from the users home directory files. # ls -lrt ~username
i.e look at the timestamp of.profile , .history .cshrc etc.
In Linux:(redhat):
If auditing is enabled most of the information about user creation can be found using with the audit logs and ausearch command:
# ausearch -c useradd
Cheers,
Raj.