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.
[...]
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.
what about
-maxdepth 1
instead of
-prune
Giuliano
_______________________________________________
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