user
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| user [2025/01/18 08:34] – [User Management] 1211112299 | user [2025/01/18 08:46] (current) – 1211112299 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| **Note: Make sure to [[installation# | **Note: Make sure to [[installation# | ||
| + | ----- | ||
| ===== How to create a user ===== | ===== How to create a user ===== | ||
| This section will show you how to create a user. We will be creating three users: **yourself, John Doe and Will Smith**. | This section will show you how to create a user. We will be creating three users: **yourself, John Doe and Will Smith**. | ||
| + | ----- | ||
| * **First User: Yourself** | * **First User: Yourself** | ||
| Line 72: | Line 73: | ||
| {{: | {{: | ||
| + | ----- | ||
| ===== How to delete user ===== | ===== How to delete user ===== | ||
| This section will show you how to delete users. | This section will show you how to delete users. | ||
| + | ----- | ||
| 1. Type the following command to delete user. | 1. Type the following command to delete user. | ||
| Line 109: | Line 112: | ||
| | | ||
| ----- | ----- | ||
| - | + | You have learned how to create | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | ====== User Management ====== | + | |
| - | User management in Linux is a critical aspect of system administration. It involves creating, modifying, and managing user accounts and groups | + | |
| - | ----- | + | |
| - | + | ||
| - | * **Change user password** | + | |
| - | + | ||
| - | 1. Type this command to change user password. | + | |
| - | sudo passwd username | + | |
| - | + | ||
| - | 2. Enter new password. Then, you will be ask to retype your new password. | + | |
| - | + | ||
| - | 3. Your password is changed successfully. | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | * **Manage password aging and expiration** | + | |
| - | + | ||
| - | The '' | + | |
| - | + | ||
| - | The syntax is: '' | + | |
| - | + | ||
| - | 1. Displays the current password aging information. | + | |
| - | sudo chage -l username | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | 2. Set the account expiration date. | + | |
| - | sudo chage -E 2025-12-31 username | + | |
| - | The account will be disabled after this date. To set account expiration | + | |
| - | sudo change -E -1 username | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | 3. Set a warning to the user 7 days before the password expires. | + | |
| - | sudo chage -W 7 username | + | |
| - | + | ||
| - | {{: | + | |
user.1737189280.txt.gz · Last modified: 2025/01/18 08:34 by 1211112299
