Home > OS >  Set the directory right, big help
Set the directory right, big help

Time:09-16

Assumes that the system has two accounts, respectively is aaa with his initials (e.g., zhang SAN is zs), the two account in addition to support their own group, also to support a group called wxit, such as the two accounts need to be jointly owned/SRV/ithome/directory under the root directory development rights, and no other account into refer to the catalogue, could you tell me the directory permissions should be how to set? Please with traditional authority shows, with the function of the SGID parsing,
Strives for the big help

CodePudding user response:

Groupadd wxit
Usermod -g wxit aaa
Usermod -g wxit zs
Chown. Wxit/SRV/ithome
Chmod 770/SRV/ithome
Sgid plan
Groupadd wxit
Usermod -g wxit aaa
Usermod -g wxit zs
Chown. Aaa/SRV/ithome
Chmod 2770/SRV/ithome

CodePudding user response:

So, right?
  • Related