From 11a357ddd68939a7b3a3af5871d3be4d39cc3046 Mon Sep 17 00:00:00 2001 From: litianci Date: Wed, 5 Oct 2022 21:51:27 +0800 Subject: [PATCH 1/2] Brief modification --- docs/books/admin_guide/06-users.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/books/admin_guide/06-users.md b/docs/books/admin_guide/06-users.md index c8ff425916..953b30b95d 100644 --- a/docs/books/admin_guide/06-users.md +++ b/docs/books/admin_guide/06-users.md @@ -534,7 +534,7 @@ $ sudo chown albert:GroupA myfile | Option | Description | | ------ | ------------------------------------------------------ | -| `-R` | Changes the owners of the directory and its contents. | +| `-R` | Recursively changes the owner of the directory and all files under the directory.| | `-v` | Displays the executed changes. | To change only the owner user: @@ -561,6 +561,12 @@ In the following example the group assigned will be the primary group of the spe $ sudo chown albert: file ``` +Change the owner and group of all files in a directory + +``` +$ sudo chown -R albert:GroupA /dir1 +``` + ### `chgrp` command The `chgrp` command allows you to change the owner group of a file. @@ -576,7 +582,7 @@ $ sudo chgrp group1 file | Option | Description | | ------ | ------------------------------------------------------------------------ | -| `-R` | Modifies the owner groups of the directory and its contents (recursion). | +| `-R` | Recursively changes the group of the directory and all files under the directory. | | `-v` | Displays the executed changes. | !!! Note From 8cdaff657201e9c7aed5c4d2945e59153172db02 Mon Sep 17 00:00:00 2001 From: tianci li <86754294+jimcat8@users.noreply.github.com> Date: Wed, 5 Oct 2022 21:54:16 +0800 Subject: [PATCH 2/2] Update 06-users.md --- docs/books/admin_guide/06-users.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/books/admin_guide/06-users.md b/docs/books/admin_guide/06-users.md index 953b30b95d..63aba5156f 100644 --- a/docs/books/admin_guide/06-users.md +++ b/docs/books/admin_guide/06-users.md @@ -534,7 +534,7 @@ $ sudo chown albert:GroupA myfile | Option | Description | | ------ | ------------------------------------------------------ | -| `-R` | Recursively changes the owner of the directory and all files under the directory.| +| `-R` | Recursively changes the owners of the directory and all files under the directory.| | `-v` | Displays the executed changes. | To change only the owner user: @@ -582,7 +582,7 @@ $ sudo chgrp group1 file | Option | Description | | ------ | ------------------------------------------------------------------------ | -| `-R` | Recursively changes the group of the directory and all files under the directory. | +| `-R` | Recursively changes the groups of the directory and all files under the directory. | | `-v` | Displays the executed changes. | !!! Note