Linux Users Groups and Sudo Checklist for RHCSA

halfbrain_logo512adminJune 19, 2026
5 lượt xem

Linux Users Groups and Sudo Checklist for RHCSA

User and group management is a core RHCSA skill. System admins must create users, assign groups, manage passwords, control sudo access and understand how identity affects file ownership and service access.

Core principle

Linux access control starts with identity. A user owns processes and files. A group shares access. Sudo grants controlled administrative power.

Checklist

  1. Create a normal user.
  2. Create a group.
  3. Add a user to a group.
  4. Set or reset a password.
  5. Check user ID and group ID.
  6. Review /etc/passwd and /etc/group.
  7. Grant sudo access through a group when appropriate.
  8. Switch users safely.
  9. Lock or remove unused accounts.
  10. Verify file ownership after user changes.

Reusable lesson

This applies to server access, deployment users, WordPress file ownership, service users, database users and least privilege design.

Checklist Type Security
Level Beginner
Risk Level High Risk
Estimated Time 45–90 minutes

When to Use This Checklist

Use this checklist when practicing Linux user, group and sudo management for RHCSA and real system administration.

Required Tools

Linux VM, root or sudo access, test users, terminal, /etc/passwd, /etc/group, sudoers policy

Before You Start

Do not give sudo access casually. Admin rights should be intentional and documented.

Structured Checklist Steps

  1. Create user.
  2. Create group.
  3. Add user to group.
  4. Set password.
  5. Check identity.
  6. Read passwd and group files.
  7. Grant sudo carefully.
  8. Switch user.
  9. Lock unused account.
  10. Verify ownership.

Verification Steps

  1. User can log in if intended.
  2. Group membership is correct.
  3. Sudo access works only where intended.
  4. Unused accounts are locked or removed.
  5. File ownership matches access design.

Common Mistakes

  • Giving sudo to every user.
  • Deleting users without checking owned files.
  • Editing sudoers without validation.
  • Forgetting supplementary groups.
  • Confusing user ownership with group access.

Related Commands

sudo useradd -m operator
sudo passwd operator
sudo groupadd webops
sudo usermod -aG webops operator
id operator
getent group webops
sudo usermod -aG wheel operator
su - operator
sudo passwd -l operator

Share:

Disclaimer: The guides, checklists, commands, and examples on HalfBrain.net are provided for educational and operational reference only. Server environments, hosting providers, software versions, security settings, and WordPress configurations can vary, so you should always review commands before running them on your own system. We do our best to keep the content accurate and useful, but we cannot guarantee that every command, configuration, or recommendation will fit every environment. Always back up your website, database, and server configuration before making changes. HalfBrain.net is not responsible for data loss, downtime, security incidents, misconfiguration, or other issues that may result from applying the information on this website. Use the material at your own discretion.

Leave a Reply

Your email address will not be published. Required fields are marked *