Manage Linux users, groups and file permissions

8 steps · about 3 h 5 min · Beginner

  1. Meet users, groups and IDs (tutorial, Linux Journey, 15 min)

    Start with why every process and file belongs to a user and group before touching any account commands.

  2. See where account data lives (guide, ArchWiki, 30 min)

    Learn what /etc/passwd, /etc/shadow and /etc/group hold so account changes stop feeling like magic.

  3. Create an account with useradd (reference, man7.org, 20 min)

    Practise the options for home directory, shell and supplementary groups on a test user.

  4. Change an existing account (reference, man7.org, 15 min)

    Add a user to a group, lock an account and see why -aG matters before you remove access by accident.

  5. Read permission bits on files (tutorial, The Linux Documentation Project, 30 min)

    Decode the rwx triplets for owner, group and others and practise chmod and chown on your own files.

  6. Use numeric modes and special bits (guide, ArchWiki, 25 min)

    Pin down octal modes, setgid on directories and the sticky bit, which shared folders rely on.

  7. Grant limited admin rights with sudo (guide, ArchWiki, 25 min)

    Edit sudoers safely with visudo and give a group only the commands it needs instead of full root.

  8. Share a directory with ACLs (guide, ArchWiki, 25 min)

    Finish by giving a second group access to one project folder when plain owner/group bits are not enough.