Information for the file to be set:
v0id6@v0id6-eof ~ $ ls Testacl-la
-rw-rw-r--+ 1 v0id6 v0id6 9 March 2 14:21 testacl
Gets the access control list for the file (this is the value before the SETFACL setting is used)
v0id6@v0id6-eof ~ $ getfacl Testacl
# File:testacl
# OWNER:V0ID6
# GROUP:V0ID6
user::rw-
group::r--
other::r--
Configure permissions for multiple groups to read and write
v0id6@v0id6-eof ~ $ setfacl-m G:V0ID6:RW,G:YYGYDJTEST:RW Testacl
v0id6@v0id6-eof ~ $ getfacl Testacl
# File:testacl
# OWNER:V0ID6
# GROUP:V0ID6
user::rw-
group::r--
group:v0id6:rw-
group:yygydjtest:rw-
mask::rw-
other::r--
Remove Group Control permissions
v0id6@v0id6-eof ~ $ setfacl-x g:yygydjtest Testacl
v0id6@v0id6-eof ~ $ getfacl Testacl
# File:testacl
# OWNER:V0ID6
# GROUP:V0ID6
user::rw-
group::r--
group:v0id6:rw-
mask::rw-
other::r--
Note: For the acquisition and configuration of group names use Cat/etc/group to view existing groupings or use Groupadd to add them
This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/