LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Deleting Multiple Users at Once

[ILUG] Deleting Multiple Users at Once

Pádraig Brady P at draigBrady.com
Tue Sep 12 15:43:58 IST 2006


Kae Verens wrote:
> paul at clubi.ie wrote:
> 
>> On Tue, 12 Sep 2006, Pádraig Brady wrote:
>>
>>> while read user; do
>>>    userdel -r $user
>>> done < class_of_2006.list
>>
>>
>> And then students of the class of 2007 find they each may have access
>> to 'stale' files of a student of 2006.
> 
> 
> would formatting the drives and reinstalling the system be out of the
> question?
> 
> what if the /home is held on a hard drive which can be wiped or replaced
> at the end of the year?

`userdel -r` does delete users home directories and mail spools.
It does not delete files elsewhere on the system or on other systems
(which may be important especially considering NIS is used here).
If all the files you care about are in a user's home directory,
then `userdel -r` should suffice.

Pádraig.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell