diff --git a/5_users_and_rights.md b/5_users_and_rights.md index f728c4af90005c83ff6ae83588b3b33bc50d8c00..c2cc3320052bcaaab1554aaf241437dafece5e4e 100644 --- a/5_users_and_rights.md +++ b/5_users_and_rights.md @@ -100,6 +100,12 @@ What can you conclude on the symbols `+` , `=`, `-` and `,` with the `chmod` com The default group of your user is the first in the list of the groups you belong to. You can use the command `groups` to display this list. What is your default group ? +The command `id` show the same information, but with some differences what are they ? + +Can you cross this additional information with the content of the file `/etc/passwd` and `/etc/group` ? + +What is the user *id* of **root** ? + When you create an empty file, system default rights and your default groups are used. You can use the command `touch` to create a file. ```sh @@ -130,12 +136,6 @@ We have seen how to change the right associated with the group, but what about c chgrp audio .bashrc ``` -The command `id` show the same information, but with some differences what are they ? - -Can you cross this additional information with the content of the file `/etc/passwd` and `/etc/group` ? - -What is the user *id* of **root** ? - Now the next step is to change the owner of a file, you can use the command `chown` for that. ```sh