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
--------------------------------------------------------