Batch modification of file and folder owners and permissions under Linux requires two commands, chmod and Chown
Example: Perform the same permission change for all files in the/opt/oracle/directory as subdirectories:
Chmod-r 700/opt/oracle/
-r parameter is all files and subfolders under the recursive processing directory
700 is a changed permission representation (only the owner has permission to read and write and execute)
/opt/oracle/is the directory that needs to be executed
Example: Perform the same owner change for all files in the/opt/oracle/directory as the subdirectory, so that the owner is modified to the Oracle user of the Oinstall user group
Chown-r oracle:oinstall/opt/oracle/
-R Ibid.
Oracle:oinstall Oinstall User Group of Oracle, user groups do not have to
Bulk modification of file and folder owners and permissions under Linux