Authority, role and setting roles

 

 

 

 The first character has :-( indicates that this is a file), d (indicates that this is a directory), l (that this is a link, such as Shortcuts in the window)

Permissions, roles settings:

Set 1. Role

Modify Owner: chown [-R] file name or directory user (-R may be added all directory files recursively disposed below the same effect as the owner)

Modify owner and group: chown [-R] User Name: the name of the file or directory group

Review belonging group: chgrp [-R] groups file or directory name

2. permission settings:

Mode 1:

Modify the permissions: chmod [-R] xyz file or directory

(X denotes owner permissions, y represents the privileges of the group, z represents another user)

r: 4 w: 2 x: 1 rwx authority digital sum i.e.

Option 2:

Modify the permissions: chmod [-R] xyz file or directory

x ugoa role on behalf of the owner, the owning group, others

provided y + - = representing increasing, decreasing, provided

z permissions rwx

Guess you like

Origin www.cnblogs.com/shouyaya/p/12116196.html