- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can you tell when a Unix account was 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
02-14-2008 11:59 AM
02-14-2008 11:59 AM
How can you tell when a Unix account was created?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 12:12 PM
02-14-2008 12:12 PM
Re: How can you tell when a Unix account was created?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 12:12 PM
02-14-2008 12:12 PM
Re: How can you tell when a Unix account was created?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 12:16 PM
02-14-2008 12:16 PM
Re: How can you tell when a Unix account was created?
Only by inference. First, there is no such attribute/property as a "creation" timestamp in Unix. You have a modification timestamp ('mtime') and that would coincidently equal the creation moment until such time as the file in question was changed; or until such time (for a directory) as a file was added or removed from the directory.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 12:20 PM
02-14-2008 12:20 PM
Re: How can you tell when a Unix account was created?
Looking at /etc/passwd isn't going to tell you anything because there are no date stamps. The closest you can come is looking at the date/time stamps on the user's home directory but, as Jim says, there's no guarantee with that either.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 12:33 PM
02-14-2008 12:33 PM
Re: How can you tell when a Unix account was created?
Add an audit log to your user creation/removal script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 12:58 PM
02-14-2008 12:58 PM
Re: How can you tell when a Unix account was created?
There are five senior admins here and none of us could come up with anything better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 01:17 PM
02-14-2008 01:17 PM
Re: How can you tell when a Unix account was created?
Is all your user admin done via SAM ? If so, do you delete the SAM logs ?
Do you clear out your wtmp files ? First entry for each user could be close to their creation time.
Otherwise back to a better solution for going forward.
Create your user admin scripts with a nicely formatted audit/log file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2008 07:22 AM
02-15-2008 07:22 AM
Re: How can you tell when a Unix account was created?
attached is my audit program for logging changes in /etc/passwd + /etc/shadow.
Logdirectory $PWwdir (default: /root/pw) needs creation/modification before the first run.
My crontab runs this in a 4hour frame - your milage may vary.
Note that my 'key' is the UID - so UID-changes result in NEW/DEL records.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2008 08:03 AM
02-15-2008 08:03 AM
Re: How can you tell when a Unix account was created?
This is bulletproof:
http://hp.feedroom.com/index.jsp?fr_story=4771fb6e6ae03e45534d08bfbe17cade6656025b&fr_chl=d9138bf1d80fad18e3bfa58c2dc62ae5716c10df
off topic, anyway.
Have a funny friday!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2008 08:08 AM
02-15-2008 08:08 AM
Re: How can you tell when a Unix account was created?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2008 08:12 AM
02-15-2008 08:12 AM
Re: How can you tell when a Unix account was created?
That was awesome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2008 09:00 AM
02-15-2008 09:00 AM