- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to find when a user is 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
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
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
тАО03-21-2007 05:05 PM
тАО03-21-2007 05:05 PM
how to find when a user is created
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2007 05:17 PM
тАО03-21-2007 05:17 PM
Re: how to find when a user is created
/usr/lbin/getprpw "user_name"
Also look at passwd -sa command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2007 05:20 PM
тАО03-21-2007 05:20 PM
Re: how to find when a user is created
i don't know if there is a way to know the exact date of user creation.
However you can guess the approx span in which the user got created by having a look at /etc/passwd.
if any user is added the entry for that user is appended. so by having a look at the depth of /etc/passwd file there is a chance u can guess. however it is difficult.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2007 05:21 PM
тАО03-21-2007 05:21 PM
Re: how to find when a user is created
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2007 05:33 PM
тАО03-21-2007 05:33 PM
Re: how to find when a user is created
Though you can check the files like .profile, .kshrc, .login if they aren't modified since then or you can configure a logging through a script when you create a new user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2007 08:53 PM
тАО03-21-2007 08:53 PM
Re: how to find when a user is created
limited options, please see earlier threads:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=518531
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1031199
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 12:32 AM
тАО03-22-2007 12:32 AM
Re: how to find when a user is created
you can do nothing for the past, but for future data I'll attach my script "upd_passwd_log" (includes support for /etc/shadow) which is run via a crontab entry like this on all relevant servers:
0 6,9,12,15,18,21 * * 1-5 /root/bin/upd_passwd_log
Configure the variable
PWdir
to your needs.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 12:37 AM
тАО03-22-2007 12:37 AM
Re: how to find when a user is created
> I can check by user home folder creation date...
Please, there is no such thing as a creation date in Unix. The closest you can come is the 'mtime' which represents the last *modification* timestamp. Coincidentally, at the time a file or directroy is first created its 'mtime' can be said to be its creation timestamp, but thereafter any changes modify the timestamp value. For directories, additions and deletions of files to the structure modify 'mtime', obliterating the original 'mtime' or "creation" information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 02:39 AM
тАО03-22-2007 02:39 AM
Re: how to find when a user is created
... and has already been mentioned UNIX has absolutely no concept of the creation date of a file. If that happens to coincide with a files mtime or ctime, it is purely accidental.