Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

06-users.md #2362

Merged
merged 1 commit into from
Sep 15, 2024
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
4 changes: 2 additions & 2 deletions docs/books/admin_guide/06-users.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ sudo useradd -D -g 1000 -b /home -s /bin/bash
| Option | Description |
| -------------- | -------------------------------------------------------------------------------- |
| `-D` | Sets the default values for user creation. |
| `-b base_directory` | Define the base directory for the user's home directory. If you do not specify this option, use the HOME variable in the /etc/default/useradd file or /home/ |
| `-b base_directory` | Defines the base directory for the user's home directory. If you do not specify this option, use the HOME variable in the /etc/default/useradd file or /home/ |
| `-g group` | Sets the default group. |
| `-s shell` | Sets the default shell. |
| `-f` | Sets the number of days after the password expires before disabling the account. |
Expand Down Expand Up @@ -766,7 +766,7 @@ sudo passwd alain

!!! Note

Users who can be logged in can use the `passwd` command to change their own passwords (this process requires requesting the user's old password). The root(uid=0) user can change the password of any user.
Users logged in to the system can use the `passwd` command to change their passwords (this process requires requesting the user's old password). The root(uid=0) user can change the password of any user.

Changing passwords requires compliance with prescribed security policies, which involves **PAM (Pluggable Authentication Modules)** knowledge.

Expand Down
Loading