From 16eff32cde9f6740cf5f94bf5439f19d8b0bc07f Mon Sep 17 00:00:00 2001 From: tianci li Date: Mon, 29 Jan 2024 22:04:40 +0800 Subject: [PATCH 1/3] Changed the wording and added missing hints --- docs/books/admin_guide/14-special-authority.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/books/admin_guide/14-special-authority.md b/docs/books/admin_guide/14-special-authority.md index adb1326b99..d172c2ab39 100644 --- a/docs/books/admin_guide/14-special-authority.md +++ b/docs/books/admin_guide/14-special-authority.md @@ -239,7 +239,7 @@ For ACL permissions, this means that when the parent directory sets ACL permissi !!! info - Recursion applies to files/directories that already exist. + Recursion is suitable for files/directories that already exist in the directory. Look at the following example: @@ -295,6 +295,10 @@ default:mask::rwx default:other::--- ``` +!!! info + + 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 will be reported. + ### SetUID The role of "SetUID": From 6b63a3dba3de01986ba3606acd760303dce793bb Mon Sep 17 00:00:00 2001 From: tianci li Date: Mon, 29 Jan 2024 22:09:30 +0800 Subject: [PATCH 2/3] update01 --- docs/books/admin_guide/14-special-authority.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/books/admin_guide/14-special-authority.md b/docs/books/admin_guide/14-special-authority.md index d172c2ab39..0dacf4632e 100644 --- a/docs/books/admin_guide/14-special-authority.md +++ b/docs/books/admin_guide/14-special-authority.md @@ -297,7 +297,7 @@ default:other::--- !!! info - 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 will be reported. + 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. ### SetUID From c49c2b4a4ced65b9c7095e42009f8c97619d0871 Mon Sep 17 00:00:00 2001 From: tianci li Date: Tue, 30 Jan 2024 13:38:14 +0800 Subject: [PATCH 3/3] update02 --- docs/books/admin_guide/14-special-authority.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/books/admin_guide/14-special-authority.md b/docs/books/admin_guide/14-special-authority.md index 0dacf4632e..b58611274b 100644 --- a/docs/books/admin_guide/14-special-authority.md +++ b/docs/books/admin_guide/14-special-authority.md @@ -563,7 +563,7 @@ Shell > chattr -i /tmp/filei /tmp/diri | | Delete | Free modification | Append file content | View | Create file | |:----------:|:------:|:-----------------:|:-------------------:|:----:|:-----------:| | file | × | × | √ | √ | - | -| directory | x
(Directory and files under the directory) | √
(Files in the directory) | √
(Files in the directory) | √
(Files in the directory) | √ | +| directory | x
(Directory and files under the directory) | x
(Files in the directory) | √
(Files in the directory) | √
(Files in the directory) | √ | Examples for files: @@ -594,19 +594,19 @@ Shell > mkdir /etc/dira Shell > cd /etc/dira && echo "asdf" > afile Shell > chattr +a /etc/dira -Shell > lsattr -a /etc/dira +Shell > lsattr -ad /etc/dira -----a--------e----- /etc/dira/ Shell > rm -rf /etc/dira rm: cannot remove '/etc/dira/afile': Operation not permitted -# Allow modification +# Free modification is not allowed Shell > vim /etc/dira/afile -asdf-bcd +asdf Shell > echo "new line" >> /etc/dira/afile Shell > cat /etc/dira/afile -asdf-bcd +asdf new line # Allow creation of new files