12 Sep
2006
12 Sep
'06
01:12
Robert Lewis wrote:
find . -exec chown root {} \; might work.
. is the beginning directory to recurse from If you need the group changed as well then it would like: find. -exec chown root:root {} \;
The example given will change all files to be owned by root, a better way would be to: find / -user <four digit id> -exec chown -h root {} \; The above will search from the root file system and change all files owned by <four digit id> to be owned by root. Changing / to . will make it search the current path and subdirectories within that path. Since the original command to used to change the files originally a better solution can not be given. Mike