Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User id creation time

Status
Not open for further replies.

sraj142

Technical User
Oct 25, 2006
49
IN
Hi All,
I am having approx. 3200 users added in the server. Can anybody help to grep those user id's which I have created between 01-03-08 to 15-05-08 ?

Regards - Subharaj
 
You may want to check the /etc/security/passwd file. It contains the encrypted password and the last update. Perhpas that update field will help you. The format of the date is the number of seconds passed since Jan. 1, 1970. It would be easiest puting this into a script. Let me know if you'd like help with that.

Good Luck!
Dan
 
Hi Dan,

The last update feild in the /etc/security/passwd file will change once the user changes his/her password! So unless sraj prevent users from changing their passwords, he won't be able to rely on this feild!

Regards,
Khalid
 
Hi Dan,
I have already prevented users from password change. So it would be nice to get the script? Please help...

Regards - Sraj
 
Sraj - think carefully about not allowing your users to change their password. I would day from a security angle that'sa big no-no.

I want to be good, is that not enough?
 
I agree with KenCunningham in this!

+ it is a headache for your to change their passwords upon their request and then you will go back to square one as the last update field will be changed once you change the password yourself!

Regards,
Khalid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top