Skip to main content
Managing local user accounts on Linux is essential for security, privacy, and streamlined administration. Each user should have a dedicated account so they:
  • Keep personal files and directories protected by proper permissions
  • Configure their own environment and tool settings
  • Operate with the least privilege, reducing accidental damage and attack surface
The image shows a dark interface with the text "Manage Local User Accounts" on the left and a user icon in the center. The word "KodeKloud" is in the top right corner.

1. Creating a New User

Use useradd to provision a fresh account.
By default, this performs:
Skeleton files define initial user config.
You can also review default parameters:

2. Setting a Password

After account creation, assign a strong password:

3. Deleting a User

Remove user accounts carefully:
Using --remove (or -r) will delete the user’s home directory and mail spool permanently.
Always back up important data before proceeding.

4. Customizing Account Creation

Pass flags to override defaults:

5. Inspecting User Records

Account metadata resides in /etc/passwd:
  • Field breakdown: username:password:UID:GID:comment:home:shell
View file ownership under /home:
Display numeric IDs:

6. Identifying the Current User


7. System Accounts

System accounts serve daemons and services. They typically have UIDs below 1000 and no home directory:

8. Modifying an Existing User

Use usermod to update user settings:

9. Password Aging with chage

Control password policies using chage:

10. References

Watch Video