Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/books/admin_guide/06-users.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 owners of the directory and all files under the directory.|
| `-v` | Displays the executed changes. |

To change only the owner user:
Expand All @@ -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.
Expand All @@ -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 groups of the directory and all files under the directory. |
| `-v` | Displays the executed changes. |

!!! Note
Expand Down