From 9bef0a02dcdfedd32066011fc28b8cc1a691e61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serge=20Crois=C3=A9?= Date: Sat, 19 Nov 2022 02:16:51 +0100 Subject: [PATCH 1/2] Update 06-users.md * add missing blanks to improve markdown in objectives section * spelling (another) * capitalization after comma --- docs/books/admin_guide/06-users.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/books/admin_guide/06-users.md b/docs/books/admin_guide/06-users.md index 26a8440193..fe8bcd17b1 100644 --- a/docs/books/admin_guide/06-users.md +++ b/docs/books/admin_guide/06-users.md @@ -9,11 +9,11 @@ In this chapter you will learn how to manage users. **** **Objectives**: In this chapter, future Linux administrators will learn how to: -:heavy_check_mark: add, delete or modify a **group**; -:heavy_check_mark: add, delete or modify a **user**; -:heavy_check_mark: Understand the files associated with users and groups and learn how to manage them; -:heavy_check_mark: change the *owner* or the *group owner* of a file; -:heavy_check_mark: *secure* user accounts; +:heavy_check_mark: add, delete or modify a **group**; +:heavy_check_mark: add, delete or modify a **user**; +:heavy_check_mark: Understand the files associated with users and groups and learn how to manage them; +:heavy_check_mark: change the *owner* or the *group owner* of a file; +:heavy_check_mark: *secure* user accounts; :heavy_check_mark: change identity. :checkered_flag: **users** @@ -148,7 +148,7 @@ $ sudo groupdel GroupC When deleting a group, there are two conditions that can occur: * If a user has a unique primary group and you issue the `groupdel` command on that group, you will be prompted that there is a specific user under the group and it cannot be deleted. - * If a user belongs to a supplementary group (not the primary group for the user) and that group is not the primary group for antoher user on the system, then the `groupdel` command will delete the group without any additional prompts. + * If a user belongs to a supplementary group (not the primary group for the user) and that group is not the primary group for another user on the system, then the `groupdel` command will delete the group without any additional prompts. Examples: @@ -489,7 +489,7 @@ root:$6$...:15399:0:99999:7::: * 1: Login name. * 2: Encrypted password. Uses the SHA512 encryption algorithm, defined by the `ENCRYPT_METHOD` of `/etc/login.defs`. * 3: The time when the password was last changed, the timestamp format, in days. The so-called timestamp is based on January 1, 1970 as the standard time. Every time one day goes by, the timestamp is +1. -* 4: Minimum lifetime of the password. That is, The time interval between two password changes (related to the third field), in days. Defined by the `PASS_MIN_DAYS` of `/etc/login.defs`, the default is 0, that is, when you change the password for the second time, there is no restriction. However, if it is 5, it means that it is not allowed to change the password within 5 days, and only after 5 days. +* 4: Minimum lifetime of the password. That is, the time interval between two password changes (related to the third field), in days. Defined by the `PASS_MIN_DAYS` of `/etc/login.defs`, the default is 0, that is, when you change the password for the second time, there is no restriction. However, if it is 5, it means that it is not allowed to change the password within 5 days, and only after 5 days. * 5: Maximum lifetime of the password. That is, the validity period of the password (related to the third field). Defined by the `PASS_MAX_DAYS` of `/etc/login.defs`. * 6: The number of warning days before the password expires (related to the fifth field). The default is 7 days, defined by the `PASS_WARN_AGE` of `/etc/login.defs`. * 7: Number of days of grace after password expiration (related to the fifth field). From 092dee9540da9d7dca98047f54a0b6b511497e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serge=20Crois=C3=A9?= Date: Sat, 19 Nov 2022 02:29:59 +0100 Subject: [PATCH 2/2] Update 06-users.md * lowercase (understand the files...) --- docs/books/admin_guide/06-users.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/books/admin_guide/06-users.md b/docs/books/admin_guide/06-users.md index fe8bcd17b1..b9791e33c2 100644 --- a/docs/books/admin_guide/06-users.md +++ b/docs/books/admin_guide/06-users.md @@ -11,7 +11,7 @@ In this chapter you will learn how to manage users. :heavy_check_mark: add, delete or modify a **group**; :heavy_check_mark: add, delete or modify a **user**; -:heavy_check_mark: Understand the files associated with users and groups and learn how to manage them; +:heavy_check_mark: understand the files associated with users and groups and learn how to manage them; :heavy_check_mark: change the *owner* or the *group owner* of a file; :heavy_check_mark: *secure* user accounts; :heavy_check_mark: change identity. @@ -97,7 +97,7 @@ Group naming rules: DESCRIPTION adduser and addgroup add users and groups to the system according to command line options and configuration information in /etc/adduser.conf. They are friendlier front ends to the low-level tools like useradd, groupadd and usermod programs, - by default choosing Debian policy conformant UID and GID values, creating a home directory with skeletal configuration, + by default, choosing Debian policy conformant UID and GID values, creating a home directory with skeletal configuration, running a custom script, and other features. ``` @@ -653,7 +653,7 @@ uid=1000(alain) gid=1000(GroupA) groupes=1000(GroupA),1016(GroupP) ### `newgrp` command -The `newgrp` command can select a group from the user's supplementary groups as the user's new **temporary** primary group. The `newgrp` command every time you switch a user's primary group, there will be a new **child shell**(child process). Be careful! **child shell** and **sub shell** are different. +The `newgrp` command can select a group from the user's supplementary groups as the user's new **temporary** primary group. The `newgrp` command every time you switch a user's primary group, there will be a new **child shell**(child process). Be careful! **child shell** and **sub shell** are different. ``` newgrp [secondarygroups]