User Tools

Site Tools


user

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
user [2025/01/18 08:36] 1211112299user [2025/01/18 08:46] (current) 1211112299
Line 3: Line 3:
  
 **Note: Make sure to [[installation#Enabling root and superuser on Debian|enable root and superusers]] before you proceed to avoid any errors.** **Note: Make sure to [[installation#Enabling root and superuser on Debian|enable root and superusers]] before you proceed to avoid any errors.**
 +-----
 ===== 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:
 {{:whatsapp_image_2025-01-11_at_23.37.20_98252dfd.jpg?nolink&600}} {{:whatsapp_image_2025-01-11_at_23.37.20_98252dfd.jpg?nolink&600}}
  
 +-----
 ===== 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:
  {{:screenshot_2025-01-12_193134.png?nolink&600|}}  {{:screenshot_2025-01-12_193134.png?nolink&600|}}
 ----- -----
- +You have learned how to create and delete users! Click this [[usermanagement|link]] to further know how to manage user accounts.
- +
- +
- +
-====== User Management ====== +
-User management in Linux is a critical aspect of system administration. It involves creating, modifying, and managing user accounts and groups to ensure proper access control, system security, and resource allocation. Each user is assigned a unique identity, along with permissions and restrictions. +
------ +
- +
-  * **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. +
- +
-{{:screenshot_2025-01-16_144702.png?nolink&600|}} +
- +
-  * **Manage password aging and expiration** +
- +
-The ''sudo chage'' command is used in Linux to manage password aging and expiration policies for a user. It allows administrators to define and control how long a user's password remains valid, enforce password expiration, and specify warnings before password expiration. +
- +
-The syntax is: ''sudo chage [option] username'' +
- +
-1. Displays the current password aging information. +
-  sudo chage -l username +
- +
-{{:screenshot_2025-01-16_162659.png?nolink&600|}} +
- +
-2. Set the account expiration date.  +
-  sudo chage -E  2025-12-31 username +
- +
-{{:date.png?nolink&600|}} +
- +
-The account will be disabled after this 2025-12-31. To set account expiration to **never:** +
-  sudo change -E -1 username +
- +
-3. Set a warning to the user 7 days before the password expires. +
-  sudo chage -W 7 username +
- +
-{{:date.png?nolink&600|}} +
user.1737189416.txt.gz · Last modified: 2025/01/18 08:36 by 1211112299

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki