chmod command to change permissions

Permissions:


14371593-c3036dd1bf01cd1a.png
image.png

Both methods give permission of
a octal mode


14371593-93804868071a7b97.png
image.png

chmod -R 700 文件名 : Owner has three rights, is a group, and other users no permissions (-R option allows to change permissions recursively applied to files and subdirectories)

Second, symbol patterns
initials take user, group, other of u, g, o, as symbols represent empowered to whom, a (all) representative of the three empowerment simultaneously.
Take read, write, execute the first letter and the second letter r, w, x symbol represents as read, write, and execute, as claimed in
+: increase existing permission rights on the basis of
: - removing existing permission rights basis
= : permissions set to the following values
chmod -R g-rwx,x-rwx 文件名: If there is no change before and three owner rights authority, then the result chmod -R 700 文件名is consistent.

Reproduced in: https: //www.jianshu.com/p/bb3201e7f283

Guess you like

Origin blog.csdn.net/weixin_33828101/article/details/91243736