Saturday, September 5, 2026

Quick Linux User Management

 1. Introduction to Linux User Management

·        What is Linux User Management?

·        Why User Management is Important

·        Users vs. System Accounts

2. Check Current User

·        whoami

·        id

·        who

·        w

3. View All Linux Users

·        /etc/passwd

·        cat /etc/passwd

·        cut -d: -f1 /etc/passwd

·        Find Regular Users

4. Understand /etc/passwd

·        Username

·        UID

·        GID

·        Home Directory

·        Login Shell

5. Understand /etc/shadow

·        Password Hash

·        Password Expiration

·        Account Aging

·        Security Considerations

6. Create Linux Users

·        adduser

·        useradd

·        Create Home Directory

·        Set User Password

7. View User Information

·        id

·        getent passwd

·        finger / alternatives

·        Check User Groups

8. Change User Password

·        passwd

·        Reset Password

·        Force Password Change

9. Switch Between Users

  • su
  • su - username
  • sudo -u

10. Linux Group Management

·        What is a Group?

·        Primary Group

·        Secondary/Supplementary Groups

11. Create Groups

·        groupadd

·        Verify Groups

·        getent group

12. Add Users to Groups

·        usermod -aG

·        Multiple Groups

·        Verify Group Membership

13. Remove Users from Groups

·        gpasswd -d

·        Verify Membership

14. Sudo User Management

·        What is sudo?

·        Add User to sudo Group

·        Remove Sudo Access

·        Test Sudo Permissions

15. Lock & Unlock User Accounts

·        passwd -l

·        passwd -u

·        usermod -L

·        usermod -U

16. Change User Properties

·        Change Username

·        Change Home Directory

·        Change Login Shell

·        Change User Information

17. User Password Aging

·        chage

·        Password Expiration

·        Minimum Password Age

·        Maximum Password Age

·        Force Password Change

18. Account Expiration

·        Set Account Expiration Date

·        Check Account Status

·        Disable Temporary Accounts

19. Delete Linux Users

·        userdel

·        userdel -r

·        Delete User Home Directory

·        Verify User Removal

20. Find Logged-In Users

·        who

·        w

·        users

·        last

21. User Permissions & Ownership

·        File Ownership

·        User Permissions

·        Group Permissions

·        chown

·        chmod

22. Linux User Administration Files

·        /etc/passwd

·        /etc/shadow

·        /etc/group

·        /etc/gshadow

·        /etc/sudoers

23. Practical User Management Scenario

·        Create Employees

·        Create Departments/Groups

·        Assign Users to Groups

·        Give Sudo Access

·        Lock/Unlock Accounts

·        Set Password Expiration

·        Remove Employees

24. User Management Troubleshooting

·        User Cannot Login

·        Permission Denied

·        Invalid Password

·        User Not Found

·        Sudo Permission Problems

·        Group Changes Not Taking Effect

25. Linux User Management Cheat Sheet

·        Essential Commands

·        Command Syntax

·        Common Options

·        Quick Reference

26. Hands-On Practice Exercises

·        Beginner Exercises

·        Intermediate Exercises

·        Administrator Exercises

·        Real-World Scenarios

27. Linux User Management Interview Questions

·        Basic Questions

·        Scenario-Based Questions

·        Linux Administrator Questions

·        DevOps Interview Questions

28. Final Practical Project

“Manage Users and Groups for a Small Company”

 

No comments:

Post a Comment

Linux File Management & Text Processing — Beginner Guide

File management and text processing are core Linux skills for a System Administrator, Cloud Engineer, DevOps Engineer, and Linux Administra...