Skip to content
Snippets Groups Projects
Unverified Commit 006a8ea9 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

5_users_and_rights.md: fix introduction to the id command

parent 5815613c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment