There is actually a database which records the account creation dates soon as the students register thru the website....so I think my issue is resolved. Thanks for the help.
cheers, vinay --- In [email protected], "Vinay Kashyap" <[EMAIL PROTECTED]> wrote: > > Hi Robert, > > I guess you are right on the log in time. Unfortunately the students > can ssh from their homes to this machine if they need to submit their > assignments or store their files. Provided this, if some students > login, in the worst case, yesterday, they will not be counted into the > list. Is there any file in the home directory which will not get > modified from the time of its creation?... asking this because I > thought I could retrieve the account creation date from the stamps of > this file. > > -vinay. > > --- In [email protected], Robert C Wittig > <wittig.robert@> wrote: > > > > Hello Vinay, > > > > Tuesday, June 13, 2006, 12:04:02 AM, you wrote: > > > > VK> One of the admins in our lab wanted to delete the user accounts > > VK> created in the previous year as they are not used any more. They > are > > VK> like 500 odd. So I thought i would write a script to delete > them. My > > VK> problem is that I have to seperate the users list from a huge > list of > > VK> 2500 odd. Initially i thought I will output the username list > based on > > VK> their date of creation.But I learnt that its difficult to > retrieve the > > VK> creation date. Is there any way that i can segregate those 500 > users > > VK> to a file based on some factor? > > > > When I log into most systems, the first line I see after my password > > is accepted tells me the last time I logged in. > > > > grep-ing whichever file(s) this bit of information is stored in for > > your specific OS/distro should permit you to write a script that can > > delete accounts based on how long it has been, since a user has logged > > in. > > > > > > -wittig http://www.robertwittig.com/ > > . http://robertwittig.net/ > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/0XFolB/TM --------------------------------------------------------------------~-> To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be removed. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/LINUX_Newbies/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
