Mailing Lists: Apple Mailing Lists

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

deleting unused folders



I am trying to delete user folders that are no longer owned by users in our LDAP.  I had a stroke of genius/google, and found the following command to help:
sudo find /Users -nouser -prune; 2>/dev/null
This works fine on my test server, identifying the folders that I purposefully left after deleting an LDAP user, however, on our main server it traverses down into the user directories.

My test server is running on a Mac Mini, with the user folders on the internal drive.  The main server is an Xserve G4, with the user folders on an Xserve RAID.

Both are running 10.4.9, with the latest updates.
--------------------------------------------------------
Robert Everson
Apple Certified Technical Coordinator
Laptop/Desktop Technician
Solon Community School District
--------------------------------------------------------


 _______________________________________________
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



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.