Unix OS Command Discover changing the owner of all files and groups

** Myself
Example for changing the owner of all files from “oracle” to “orauser” and group “dba”
# find / -user oracle | xargs -i -t chown orauser:dba {}
Please test as no critical directory first. !!!

# cd /dir
# find . -user oracle | xargs -i -t chown orauser:dba {}

0 comments:

Loading