The other way of doing it properly is to write a program that open's each file, calls fstat() to check the UID/GID, then uses fchown() or fchmod().
It would be nice if someone was to patch the -R option of chown/chgrp/chmod in coreutils to do this sort of thing.
To do what? The logic rapidly gets too complex for the command line, imo. (chown --only-if-uid-isn't-root? chown --onlyuids=1000-1009?)
Mike Stone
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]