From 006a8ea9c63c1abb65d096f012708545b868308e Mon Sep 17 00:00:00 2001 From: Laurent Modolo <laurent@modolo.fr> Date: Mon, 2 Nov 2020 17:14:09 +0100 Subject: [PATCH] 5_users_and_rights.md: fix introduction to the id command --- 5_users_and_rights.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/5_users_and_rights.md b/5_users_and_rights.md index f728c4a..c2cc332 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 -- GitLab