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 --------------------~--> 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/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/
 



Reply via email to