Skip to content

Commit ce4c383

Browse files
authored
Changed the wording and added missing hints (#1700)
* Changed the wording and added missing hints * update01 * update02
1 parent 88a0dcb commit ce4c383

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

docs/books/admin_guide/14-special-authority.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ For ACL permissions, this means that when the parent directory sets ACL permissi
239239

240240
!!! info
241241

242-
Recursion applies to files/directories that already exist.
242+
Recursion is suitable for files/directories that already exist in the directory.
243243

244244
Look at the following example:
245245

@@ -295,6 +295,10 @@ default:mask::rwx
295295
default:other::---
296296
```
297297

298+
!!! info
299+
300+
The default and recursion of using ACL permissions require that the operating object of the command be a directory! If the operation object is a file, an error prompt will be output.
301+
298302
### SetUID
299303

300304
The role of "SetUID":
@@ -559,7 +563,7 @@ Shell > chattr -i /tmp/filei /tmp/diri
559563
| | Delete | Free modification | Append file content | View | Create file |
560564
|:----------:|:------:|:-----------------:|:-------------------:|:----:|:-----------:|
561565
| file | × | × ||| - |
562-
| directory | x <br>(Directory and files under the directory) | <br>(Files in the directory) | √ <br>(Files in the directory) | √ <br>(Files in the directory) ||
566+
| directory | x <br>(Directory and files under the directory) | x<br>(Files in the directory) | √ <br>(Files in the directory) | √ <br>(Files in the directory) ||
563567

564568
Examples for files:
565569

@@ -590,19 +594,19 @@ Shell > mkdir /etc/dira
590594
Shell > cd /etc/dira && echo "asdf" > afile
591595

592596
Shell > chattr +a /etc/dira
593-
Shell > lsattr -a /etc/dira
597+
Shell > lsattr -ad /etc/dira
594598
-----a--------e----- /etc/dira/
595599

596600
Shell > rm -rf /etc/dira
597601
rm: cannot remove '/etc/dira/afile': Operation not permitted
598602

599-
# Allow modification
603+
# Free modification is not allowed
600604
Shell > vim /etc/dira/afile
601-
asdf-bcd
605+
asdf
602606

603607
Shell > echo "new line" >> /etc/dira/afile
604608
Shell > cat /etc/dira/afile
605-
asdf-bcd
609+
asdf
606610
new line
607611

608612
# Allow creation of new files

0 commit comments

Comments
 (0)