Ubuntu change the sub-files and subdirectories owner permissions

chmod and chown, which can be achieved with a recursive -R parameter change all subfolders and subdirectories permissions.
1, using chmod modify permissions:
: perform the same rights to all subfolders with subfolder Document / change directory
chmod 700 -R & lt Document /
-R & lt parameters are all the files and subfolders in the folder recursive directory processing
after the change is 700 permissions represent (only the owner has permission to read and write and execute)
the Document / directory is to be executed

2, using chown change the owner:
to perform the same changes to the owner of all files and subdirectories Document / directory owner to modify users username users user group
chown -R & lt username: users Document /
username: users users user group a username, a user must have a set of parameters is not

Published 21 original articles · won praise 11 · views 20000 +

Guess you like

Origin blog.csdn.net/hexf9632/article/details/95223323