Mike's Script Archive : uidfind
uidfind - find files/directories owned by users not in the password file
NAME
uidfind - find files/directories owned by users not in the password file
uidfind
SYNOPSIS
uidfind [-r replace_by_uid] [-i] start_dir
OPTIONS
-r replace_by_uid
Replace all invalid UIDs found by replace_by_uid (can be either a
user name or an ID).
-i
(Only in conjunctions with -r
). Prompt user each time a replacement
is made.
-v
Be verbose.
uidfind starts a find at start_dir
, and searches recursively for
files/directories with user IDs not listed in the password file.
To replace these unknown IDs by others, use the -r
option. To prompt
the user interactively before a replacement is made, use -i
.
EXAMPLES
$ uidfind /home/joe
$ uidfind -r joe /home/joe
$ uidfind -r joe -i /home/joe
Copyright 2005 by Mike Schilli, all rights reserved.
This program is free software, you can redistribute it and/or
modify it under the same terms as Perl itself.
2005, Mike Schilli <m@perlmeister.com >