**************************************** *****************************
/*************************************** ******************************
* Author: Samson
* Date: 03/02/2014
* Test platform:
* Linux ubuntu 3.2.0-58-generic-pae
* GNU bash, version 4.2.39
**************************************** ****************************/
// Information of the file to be set:
V0id6 @ v0id6-eof ~ $ Ls testacl-la
-Rw-r -- + 1 v0id6 v0id6 9 March 2 14:21 testacl
// Obtain the object access control list (this is the value before setfacl is not used)
V0id6 @ v0id6-eof ~ $ Getfacl testacl
# File: testacl
# Owner: v0id6
# Group: v0id6
User: rw-
Group: r --
Other: r --
// Configure the read and write permissions for multiple groups
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 --
// Delete the group control permission
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: to obtain and configure the group name, use cat/etc/group to view the existing group or add it using groupadd.