{"id":3265,"date":"2026-10-08T11:46:43","date_gmt":"2026-10-08T11:46:43","guid":{"rendered":"https:\/\/www.examtopics.info\/blog\/red-hat-ex200-rhel-user-and-group-administration\/"},"modified":"2026-10-08T11:46:43","modified_gmt":"2026-10-08T11:46:43","slug":"red-hat-ex200-rhel-user-and-group-administration","status":"publish","type":"post","link":"https:\/\/www.examtopics.info\/blog\/red-hat-ex200-rhel-user-and-group-administration\/","title":{"rendered":"Red Hat EX200: RHEL User and Group Administration"},"content":{"rendered":"<h2>Red Hat EX200: RHEL User and Group Administration<\/h2>\n<p>User and group administration is one of the foundations of RHEL security. Local accounts determine who can log in, file ownership controls what processes can read or modify, group membership provides shared access, and privileged-access configuration determines who can perform administrative tasks. Small mistakes can either lock out legitimate operators or grant more authority than intended.<\/p>\n<p>The current <a href=\"https:\/\/www.examtopics.info\/ex200\">EX200<\/a> objectives explicitly include creating, deleting, and modifying local users and groups, managing password aging, changing group membership, and configuring privileged access. The durable skill is understanding how account databases, permissions, authentication, and sudo policy work together.<\/p>\n<h3>Understand the account records you are changing<\/h3>\n<p>Local account information is represented through files and services such as <code>\/etc\/passwd<\/code>, <code>\/etc\/shadow<\/code>, and <code>\/etc\/group<\/code>. Administrators usually modify them through commands rather than direct editing, but understanding their role helps explain UID, GID, home directory, shell, password state, and membership behavior.<\/p>\n<p>UIDs and GIDs are what the filesystem records. A file does not fundamentally belong to the text name <code>alice<\/code>; it belongs to a numeric identity that the system maps to that name. Reusing an old UID for a new person can therefore expose abandoned files unexpectedly.<\/p>\n<p>Keep identity lifecycle deliberate. Creation, role change, temporary elevation, suspension, and deletion should all have defined procedures.<\/p>\n<h3>Create users with appropriate defaults<\/h3>\n<p>When adding an account, choose home directory, primary group, supplementary groups, shell, and account-expiry settings according to purpose. Human interactive users and service accounts usually need different defaults.<\/p>\n<p>Do not give every service account a normal login shell or password. If an application only needs a local identity for file ownership, reduce the ways that identity can be used interactively.<\/p>\n<p>Review skeleton files and default account settings so newly created users receive consistent, intentional configuration rather than years of inherited assumptions.<\/p>\n<h3>Use groups to represent shared authorization<\/h3>\n<p>Groups make file and command access easier to manage than individual permissions repeated across many users. A project directory can be owned by a shared group, while administrative commands can be delegated to a controlled group through sudo policy.<\/p>\n<p>Distinguish the primary group from supplementary groups and verify membership after changes. A currently logged-in session may not immediately reflect a newly added group, so test in a fresh session when validating access.<\/p>\n<p>Avoid turning one giant administrative group into a substitute for access design. Smaller role-oriented groups make audits clearer and reduce privilege spread.<\/p>\n<h3>Manage password state and aging intentionally<\/h3>\n<p>RHEL can enforce password aging, minimum and maximum days, warning periods, and account expiration. These controls should align with organizational policy and the authentication model in use.<\/p>\n<p>Password aging is not a replacement for strong authentication. Modern policy may emphasize long unique passwords, MFA, and rapid response to compromise rather than very frequent forced changes. Local systems should still implement the organization&#8217;s approved requirements consistently.<\/p>\n<p>The principles in a clear <a href=\"https:\/\/www.examtopics.info\/blog\/password-policy-explained-meaning-rules-and-security-best-practices\/\">password policy<\/a> are useful: define length, reuse, storage, recovery, and lifecycle expectations instead of relying on one numeric expiration value.<\/p>\n<h3>Lock or expire accounts without destroying evidence<\/h3>\n<p>When a user leaves or an account is suspected compromised, immediate deletion may remove useful ownership context and complicate investigation. Locking authentication or expiring the account can stop normal login while preserving records for review.<\/p>\n<p>Then identify scheduled jobs, owned files, SSH keys, service dependencies, and sudo permissions tied to the account. A disabled login does not automatically stop a running process or revoke every credential the person may possess.<\/p>\n<p>Deletion should occur after ownership and retention requirements are resolved, not as the first reflex.<\/p>\n<h3>Manage SSH access separately from account existence<\/h3>\n<p>A local account can authenticate through several mechanisms. SSH public keys may permit login even when password authentication is disabled. Review <code>authorized_keys<\/code>, SSH daemon policy, source restrictions, and file permissions.<\/p>\n<p>Protect private keys on client systems and remove old authorized keys promptly. The practices in <a href=\"https:\/\/www.examtopics.info\/blog\/secure-shell-ssh-key-files-explained-for-reliable-remote-access\/\">SSH key management<\/a> are directly relevant to RHEL administration because possession of a valid private key can bypass password-based controls.<\/p>\n<p>For shared administration, avoid copying one private key among several people. Individual identities produce better accountability and simplify revocation.<\/p>\n<h3>Delegate privileged access through sudo<\/h3>\n<p>Sudo allows administrators to grant specific commands or broader root-equivalent access while retaining an attributable user identity. Use <code>visudo<\/code> or validated configuration fragments so syntax errors do not break administrative access.<\/p>\n<p>Delegate the minimum commands required. A rule that permits unrestricted shells, editors with shell escapes, package installation, or arbitrary file writes may effectively grant full root even if the word <code>ALL<\/code> is absent.<\/p>\n<p>Use groups or role-based rules where several administrators need the same capability. This keeps policy readable and reduces duplicated account-specific entries.<\/p>\n<h3>Understand file ownership and permission consequences<\/h3>\n<p>User and group changes affect filesystems. If a user&#8217;s UID changes, existing files may retain the old numeric ownership until explicitly corrected. If a shared group changes, directories may need setgid behavior or ACLs to preserve collaboration expectations.<\/p>\n<p>Do not solve access problems by making files world-writable. Identify the correct owner, group, permission bits, default umask, or ACL rule.<\/p>\n<p>Administrative access and application access should remain separate. A database service account should own its data, while human administrators use sudo for controlled maintenance rather than sharing the service account credentials.<\/p>\n<h3>Audit dormant and privileged accounts regularly<\/h3>\n<p>Inventory local accounts, login shells, last-login information, password state, sudo privileges, and SSH keys. Compare the list with current personnel and service ownership. Old emergency accounts and forgotten test users are common sources of unnecessary risk.<\/p>\n<p>Focus on privilege pathways: UID 0 accounts, unrestricted sudo, sensitive group membership, write access to systemd units or scripts run as root, and keys that bypass normal authentication.<\/p>\n<p>Access review is most useful when every privileged identity has an owner and business purpose. Unknown accounts should trigger investigation rather than automatic acceptance because they have existed for a long time.<\/p>\n<p>If a user cannot log in, separate account existence, password state, shell, home directory, PAM, SSH policy, SELinux, and network reachability. If a user can log in but cannot access a file, inspect numeric ownership, group membership, mode bits, ACLs, and SELinux context.<\/p>\n<p>If sudo fails, validate the policy and the exact command path. Wildcards and arguments matter. Test with a controlled account rather than repeatedly broadening the rule until it works.<\/p>\n<p>Within <a href=\"https:\/\/www.examtopics.info\/redhat-exams\">Red Hat certifications<\/a>, local identity management is foundational because almost every service eventually depends on users, groups, ownership, or privilege. Correct administration keeps those relationships explicit and auditable.<\/p>\n<p>Account naming and UID allocation should be consistent across systems that share files. If the same NFS data is mounted on several hosts but a user has different UIDs, ownership can appear incorrect even when the username text looks familiar. Central identity services solve many of these problems, but local-account understanding remains essential for system and recovery access.<\/p>\n<p>System accounts often use UIDs from ranges reserved for services and may be created automatically by packages. Before deleting an unfamiliar account, determine which package or daemon owns it. Removing a service identity can break upgrades, file ownership, or startup even if nobody logs in with that name.<\/p>\n<p>Shell choice is an authorization signal. Accounts that should never receive an interactive session can use a non-login shell. That does not replace other controls, but it reduces accidental or malicious use of the account as a general-purpose identity.<\/p>\n<p>Home-directory permissions deserve review. A user&#8217;s private SSH keys, configuration, history, and application credentials may be exposed if the home directory or dotfiles are too permissive. Defaults should protect privacy while still supporting any intentional shared access.<\/p>\n<p>Group ownership for collaborative directories can be reinforced with the setgid bit so newly created files inherit the directory group. Combine that with an appropriate umask or default ACL so team members receive the required access without making content world-writable.<\/p>\n<p>ACLs are useful when standard owner\/group\/other permissions cannot represent the requirement cleanly. Use them sparingly and document them, because a file can appear inaccessible by mode bits while an ACL grants access. Troubleshooting should always check for extended ACLs before changing ownership or permissions.<\/p>\n<p>Sudo logging can provide strong accountability. Configure sufficient log retention and central collection for privileged actions, especially on critical servers. Remember that giving a user a root shell through sudo means subsequent shell commands may not appear as individually authorized sudo operations unless additional session logging is configured.<\/p>\n<p>Command-specific sudo rules need careful review for escape paths. Text editors, interpreters, package managers, service managers, and commands that accept arbitrary file paths can sometimes be leveraged to execute other commands or overwrite privileged files. Delegate outcomes, not merely command names.<\/p>\n<p>Emergency accounts should have explicit controls: protected credentials, restricted distribution, alerting on use, and post-use rotation. A break-glass account that nobody monitors can become a permanent backdoor.<\/p>\n<p>Account expiration and password expiration are different. An account can be configured to stop working after a date regardless of password age, while password aging controls credential lifecycle. Use the correct mechanism for contractors, temporary access, and policy requirements.<\/p>\n<p>When troubleshooting failed authentication, inspect system journals and authentication logs before resetting passwords. Repeated resets can hide the original cause, such as an expired account, locked password, denied shell, invalid SSH key permissions, or PAM rule.<\/p>\n<p>Time matters for identity systems. Clock skew can break Kerberos, certificate-based access, and some MFA flows even when local user data is correct. If failures affect many accounts simultaneously, look beyond individual password state.<\/p>\n<p>File ownership cleanup should avoid indiscriminate recursive <code>chown<\/code> on large or sensitive trees. Determine which files genuinely belong to the departing user and which numeric UID represents a service, container, or shared dataset. Ownership is part of application state.<\/p>\n<p>Review cron jobs, systemd user services, at jobs, and scheduled automation during offboarding. Disabling interactive login does not stop previously scheduled commands from running under the account if the scheduler still has valid state.<\/p>\n<p>Privileged group membership such as <code>wheel<\/code> should be reviewed regularly and tied to current role. Temporary incident access can be granted with an expiry process rather than left indefinitely because removing it later feels risky.<\/p>\n<p>Finally, document recovery access. If centralized identity fails, administrators may depend on a small number of local accounts. Protect those credentials, test them periodically, and ensure their existence does not undermine normal least-privilege policy.<\/p>\n<p>Centralized identity does not eliminate local authorization. LDAP, Active Directory, or IdM may supply user identities, while local group membership, sudo rules, SSH configuration, and file permissions still determine what those identities can do on a specific RHEL host. Know which system is authoritative for each decision.<\/p>\n<p>Name-service caching can confuse troubleshooting after group or directory changes. An identity provider may be correct while the host still uses cached information. Understand the caching layer in your environment before repeatedly modifying accounts.<\/p>\n<p>Service ownership should survive personnel changes. Do not run production services under a named employee account simply because that person installed the software. Use dedicated service identities and grant humans controlled administration around them.<\/p>\n<p>When scripts depend on users or groups, fail clearly if the expected identity does not exist. Silent fallback to root ownership or a default group can create security problems that remain hidden until later maintenance.<\/p>\n<p>Review default umask settings for different user classes. A permissive umask may expose newly created files before administrators realize the directory needs tighter policy. A restrictive umask can break collaboration if group-based access was the design. Set defaults intentionally and document exceptions.<\/p>\n<p>For automation accounts, use noninteractive credentials and scope sudo commands carefully. Rotate keys or tokens through managed processes and monitor use outside expected automation windows. A forgotten CI account with broad sudo is effectively an unattended administrator.<\/p>\n<p>Incident response should preserve login and privilege evidence before deleting an account. Authentication logs, sudo history, SSH keys, shell history where reliable, and owned files can help establish what happened. Disable access first, investigate, then complete lifecycle cleanup.<\/p>\n<p>Use account comments or directory metadata to record a responsible person or system purpose where organizational standards allow it. Names such as <code>svc1<\/code> become meaningless over time; ownership information reduces the risk of leaving unnecessary privileged accounts because nobody knows what they do.<\/p>\n<p>Local groups that control application access should be reviewed when employees move teams. Offboarding is not only account deletion; role changes can leave valid users with old group memberships that are no longer justified.<\/p>\n<p>For shared servers, separate operators from application identities and data owners. Administrators may need sudo to restart a service without direct membership in the group that can read confidential application data. Least privilege applies inside the operating system, not only at login.<\/p>\n<p>Test privilege delegation with the exact target account. Root testing can hide permission problems, and an administrator&#8217;s existing groups may grant access that the intended user does not have. Reproducing the user&#8217;s identity is the fastest way to validate the real authorization path.<\/p>\n<p>Account reviews should include ownership of files outside home directories, especially application data, shared repositories, and automation paths. A disabled account can still own critical files whose permissions later block service maintenance or confuse a replacement administrator.<\/p>\n<p>Document sudo, SSH, group, and service-account dependencies together during offboarding so access is removed completely without breaking production.<\/p>\n<p>Keep a tested local recovery identity for directory-service outages, with protected credentials, monitored use, and regular review.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Red Hat EX200: RHEL User and Group Administration User and group administration is one of the foundations of RHEL security. Local accounts determine who can log in, file ownership controls what processes can read or modify, group membership provides shared access, and privileged-access configuration determines who can perform administrative tasks. Small mistakes can either lock [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,1],"tags":[],"class_list":["post-3265","post","type-post","status-publish","format-standard","hentry","category-infrastructure-systems","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/posts\/3265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/comments?post=3265"}],"version-history":[{"count":0,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/posts\/3265\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/media?parent=3265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/categories?post=3265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/tags?post=3265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}