From bac8a5d2822835cf47175d1162030653fadd5c09 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 15 Feb 2024 23:29:57 +0000 Subject: deploy: 4485708c972815bbb6df7f5a228683aa855d553d --- linux/acl.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'linux/acl.html') diff --git a/linux/acl.html b/linux/acl.html index dd710f7..9b9e9e1 100644 --- a/linux/acl.html +++ b/linux/acl.html @@ -202,17 +202,17 @@ drwxrwxr-x+ 2 root root 4 11. Jun 14:26 foo/ getfacl /tank/foo

Modify acl entries

-
# Add acl entry for user "user123".
-setfacl -m "u:user123:rwx" /tank/foo
+
# Add acl entry for user "user123".
+setfacl -m "u:user123:rwx" /tank/foo
 
-# Remove entry for user "user123".
-setfacl -x "u:user123" /tank/foo
+# Remove entry for user "user123".
+setfacl -x "u:user123" /tank/foo
 
-# Add acl entry for group "group456".
-setfacl -m "g:group456:rx" /tank/foo
+# Add acl entry for group "group456".
+setfacl -m "g:group456:rx" /tank/foo
 
 # Add acl entry for others.
-setfacl -m "o:rx" /tank/foo
+setfacl -m "o:rx" /tank/foo
 
 # Remove extended acl entries.
 setfacl -b /tank/foo
@@ -221,7 +221,7 @@ setfacl -b /tank/foo
 

The mask defines the maximum access rights that can be given to users and groups.

# Update the mask.
-setfacl -m "m:rx" /tank/foo
+setfacl -m "m:rx" /tank/foo
 
 # List acl entries.
 getfacl /tank/foo
-- 
cgit v1.2.3