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 <[EMAIL PROTECTED]> 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 --------------------~--> Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/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/
