diff options
author | johannst <johannst@users.noreply.github.com> | 2024-02-15 23:29:57 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2024-02-15 23:29:57 +0000 |
commit | bac8a5d2822835cf47175d1162030653fadd5c09 (patch) | |
tree | 28f312a114cf95ac799daac2a2caec4b8612d84d /linux/acl.html | |
parent | bfc5ce4bc01e5eb28969eefcc01ecfefa2601fdf (diff) | |
download | notes-bac8a5d2822835cf47175d1162030653fadd5c09.tar.gz notes-bac8a5d2822835cf47175d1162030653fadd5c09.zip |
deploy: 4485708c972815bbb6df7f5a228683aa855d553d
Diffstat (limited to 'linux/acl.html')
-rw-r--r-- | linux/acl.html | 16 |
1 files changed, 8 insertions, 8 deletions
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 </code></pre> <h2 id="modify-acl-entries"><a class="header" href="#modify-acl-entries">Modify acl entries</a></h2> -<pre><code class="language-bash"># Add acl entry for user "user123". -setfacl -m "u:user123:rwx" /tank/foo +<pre><code class="language-bash"># 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 <p>The <code>mask</code> defines the maximum access rights that can be given to <strong>users</strong> and <strong>groups</strong>.</p> <pre><code class="language-bash"># Update the mask. -setfacl -m "m:rx" /tank/foo +setfacl -m "m:rx" /tank/foo # List acl entries. getfacl /tank/foo |