Transferred from: http://www.linuxidc.com/Linux/2015-03/114695.htm
There are two modifications in Ubuntu that can be used, "change Mode"&"change owner"
That is, chmod and chown, which can use the recursive parameter-r to change permissions for all child files and subdirectories.
1, the use of chmod Modify permissions:
Perform the same permissions changes for all sub-files in the document/directory as subdirectories:
Chmod-r document/
-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)
document/is the directory that needs to be executed
2. Use Chown to change the owner:
Perform the same owner change for all files in the document/directory as the subdirectory, modifying the username user who is the owner of the users user group
Chown-r username:users document/
Username:users Users user group username, user group parameters are not required to have
Bulk modification of file and folder owner and permissions http://www.linuxidc.com/Linux/2012-08/67840.htm under Linux
This article permanently updates the link address : http://www.linuxidc.com/Linux/2015-03/114695.htm
Change all child files and subdirectories owner permissions in Ubuntu