|
|
5b3322 |
From ecee95a94420d6b0336d4caec6bc66b53442367b Mon Sep 17 00:00:00 2001
|
|
|
5b3322 |
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
5b3322 |
Date: Thu, 19 May 2016 10:28:13 +0200
|
|
|
5b3322 |
Subject: [PATCH] setfacl.1: document the meaning of '-' in perms
|
|
|
5b3322 |
|
|
|
5b3322 |
[agruen: Description further clarified.]
|
|
|
5b3322 |
|
|
|
5b3322 |
Upstream-commit: ea3c6bb711e76d91759f8bf5475e1900362a3142
|
|
|
5b3322 |
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
|
|
5b3322 |
---
|
|
|
5b3322 |
man/man1/setfacl.1 | 28 +++++++++++++++++++++-------
|
|
|
5b3322 |
1 file changed, 21 insertions(+), 7 deletions(-)
|
|
|
5b3322 |
|
|
|
5b3322 |
diff --git a/man/man1/setfacl.1 b/man/man1/setfacl.1
|
|
|
5b3322 |
index 0c7c046..e092e51 100644
|
|
|
5b3322 |
--- a/man/man1/setfacl.1
|
|
|
5b3322 |
+++ b/man/man1/setfacl.1
|
|
|
5b3322 |
@@ -194,18 +194,32 @@ you can specify either a name or a number.
|
|
|
5b3322 |
.PP
|
|
|
5b3322 |
The
|
|
|
5b3322 |
.I perms
|
|
|
5b3322 |
-field is a combination of characters that indicate the permissions: read
|
|
|
5b3322 |
+field is a combination of characters that indicate the read
|
|
|
5b3322 |
.IR (r) ,
|
|
|
5b3322 |
write
|
|
|
5b3322 |
.IR (w) ,
|
|
|
5b3322 |
execute
|
|
|
5b3322 |
-.IR (x) ,
|
|
|
5b3322 |
-execute only if the file is a directory or already has execute permission
|
|
|
5b3322 |
-for some user
|
|
|
5b3322 |
-.IR (X) .
|
|
|
5b3322 |
-Alternatively, the
|
|
|
5b3322 |
+.IR (x)
|
|
|
5b3322 |
+permissions. Dash characters in the
|
|
|
5b3322 |
.I perms
|
|
|
5b3322 |
-field can be an octal digit (0\-7).
|
|
|
5b3322 |
+field
|
|
|
5b3322 |
+.IR (\-)
|
|
|
5b3322 |
+are ignored. The character
|
|
|
5b3322 |
+.I X
|
|
|
5b3322 |
+stands for the execute permission if the file is a directory or already has
|
|
|
5b3322 |
+execute permission for some user. Alternatively, the
|
|
|
5b3322 |
+.I perms
|
|
|
5b3322 |
+field can define the permissions numerically, as a bit-wise combination of read
|
|
|
5b3322 |
+.IR (4) ,
|
|
|
5b3322 |
+write
|
|
|
5b3322 |
+.IR (2) ,
|
|
|
5b3322 |
+and execute
|
|
|
5b3322 |
+.IR (1) .
|
|
|
5b3322 |
+Zero
|
|
|
5b3322 |
+.I perms
|
|
|
5b3322 |
+fields or
|
|
|
5b3322 |
+.I perms
|
|
|
5b3322 |
+fields that only consist of dashes indicate no permissions.
|
|
|
5b3322 |
.PP
|
|
|
5b3322 |
.SS AUTOMATICALLY CREATED ENTRIES
|
|
|
5b3322 |
Initially, files and directories contain only the three base ACL entries
|
|
|
5b3322 |
--
|
|
|
5b3322 |
2.5.5
|
|
|
5b3322 |
|