There are two modification commands 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 thesame owner change for all files in the document/directory as the subdirectory and modify the username user who owns the users user group
Chown-r username:users document/
Username:users Users user group username, user group parameters are not required to have
Reference: Http://rabbit52.com/2011/linux/ubuntu/linux-chmod-chown
Change all child files and subdirectories owner permissions in Ubuntu