Blob Blame History Raw
From 1d3077cf7690317161b9c3e183d54fb8107a80d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
Date: Tue, 28 Jun 2016 14:44:50 +0200
Subject: [PATCH 17/17] setfacl.1: document the meaning of '-' in perms

---
 acl/man1/setfacl.1 | 28 +++++++++++++++++++++-------
 1 file changed, 21 insertions(+), 7 deletions(-)

diff --git a/acl/man1/setfacl.1 b/acl/man1/setfacl.1
index 0c7c046..e092e51 100644
--- a/acl/man1/setfacl.1
+++ b/acl/man1/setfacl.1
@@ -194,18 +194,32 @@ you can specify either a name or a number.
 .PP
 The
 .I perms
-field is a combination of characters that indicate the permissions: read
+field is a combination of characters that indicate the read
 .IR (r) ,
 write
 .IR (w) ,
 execute
-.IR (x) ,
-execute only if the file is a directory or already has execute permission
-for some user
-.IR (X) .
-Alternatively, the
+.IR (x)
+permissions.  Dash characters in the
 .I perms
-field can be an octal digit (0\-7).
+field
+.IR (\-)
+are ignored.  The character
+.I X
+stands for the execute permission if the file is a directory or already has
+execute permission for some user.  Alternatively, the
+.I perms
+field can define the permissions numerically, as a bit-wise combination of read
+.IR (4) ,
+write
+.IR (2) ,
+and execute
+.IR (1) .
+Zero
+.I perms
+fields or
+.I perms
+fields that only consist of dashes indicate no permissions.
 .PP
 .SS AUTOMATICALLY CREATED ENTRIES
 Initially, files and directories contain only the three base ACL entries
-- 
2.7.4