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: deleting unused folders




On Jun 8, 2007, at 3:01 PM, Robert Everson wrote:

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.


After running a few more tests, I have seen that it does traverse into the lower directories, but only if the main directory doesn't trigger the -nouser action. This is still not what I expected it to do, but it does seem to behave exactly like my test server, so I guess I'll have to deal with it, unless anyone else has a nugget of information that they would like to share.



Thanks, -------------------------------------------------------- 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
References: 
 >deleting unused folders (From: Robert Everson <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.