Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bulk Deleting of User Accounts and Files



At 12:07 PM -0400 8/7/06, Adam Gerson wrote:
We have to delete about 100 users from our directory of around 1000. I need
to delete the OD user records as well as the home folders. Given a text file
with short names does anyone have a script that could accomplish this task?

Deleting users of a system is generally not recommended.

POSIX permissions are based on UID/GID and a recycled UID or GID can lead to security issues. Any user anywhere could have file(s) permitting the current UID/GID owners to access files.

Instead consider disabling dead accounts rather than removing the account. Then remove *all* files owned by them *everywhere*, not just in /their/ HOMEs.

I could even write my own if I knew the command line code for deleting a
user account.

Did you read the Command Line docs. --

-dhan

------------------------------------------------------------------------
Dan Shoop                                                   AIM: iWiring
Systems & Networks Architect                      http://www.ustsvs.com/
email@hidden                                http://www.iwiring.net/
1-714-363-1174

pgp key fingerprint: FAC0 9434 B5A5 24A8 D0AF  12B1 7840 3BE7 3736 DE0B

iWiring provides systems and networks support for Mac OS X, unix, and
Open Source application technologies at affordable rates.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >Bulk Deleting of User Accounts and Files (From: Adam Gerson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.