>Usage
The usermod command is used to modify user account settings, such as usernames, UIDs, or locking accounts. It's an administrative tool for updating user details.
Note: this command requires sudo privileges.
>Syntax
sudo usermod [option] username
>Options
>Examples
Example 1:
-zsh
> sudo usermod -l newusername oldusername
Confirm changes with id newusername.
Example 2:
-zsh
> sudo usermod -L username
Verify with sudo grep username /etc/shadow.
Example 3:
-zsh
> sudo usermod -e 2024-12-31 username
Verify with sudo chage -l username.
>Quiz
Progress:
Question ? out of ?