{"id":16497,"date":"2026-04-16T09:24:33","date_gmt":"2026-04-16T09:24:33","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=16497"},"modified":"2026-04-16T10:18:18","modified_gmt":"2026-04-16T10:18:18","slug":"how-to-create-manage-and-delete-users-in-almalinux-10","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/","title":{"rendered":"How to Create, Manage, and Delete Users in AlmaLinux 10"},"content":{"rendered":"\n<p>AlmaLinux 10 is a community-based and enterprise-level Linux distribution that is a downstream replica of Red Hat Enterprise Linux (RHEL). User account management is one of the most essential administrative functions on any Linux server.<\/p>\n\n\n\n<p>This step-by-step tutorial describes all things you must know about <a href=\"https:\/\/almalinux.org\/get-almalinux\/\">AlmaLinux 10<\/a> user management &#8211; adding and assigning users, assigning groups, setting passwords, modifying account properties, and safely deleting users at the command line. As a system administrator or a beginner to Linux, this tutorial will equip you with the knowledge to handle user accounts in AlmaLinux 10 with ease.<\/p>\n\n\n\n<p><strong>Table of Contents<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#Importance-of-User-Management-in-AlmaLinux-10\">Importance of User Management in AlmaLinux 10<\/a><\/li>\n\n\n\n<li><a href=\"#Understanding-User-Types-in-AlmaLinux-10-\">Understanding User Types in AlmaLinux<\/a><\/li>\n\n\n\n<li><a href=\"#Prerequisites-\">Prerequisites <\/a><\/li>\n\n\n\n<li><a href=\"#Creating-a-New-User-in-AlmaLinux-10-\">Creating a new user in AlmaLinux 10<\/a><\/li>\n\n\n\n<li><a href=\"#Setting-and-Changing-User-Passwords-\">Setting and Changing user passwords<\/a><\/li>\n\n\n\n<li><a href=\"#Create-a-User-with-Specific-Options-in-AlmaLinux-10-\">Create a User with Specific Options<\/a><\/li>\n\n\n\n<li><a href=\"#How-to-Add-a-User-to-a-Group-in-AlmaLinux-10-\">Add a User to a Group in AlmaLinux 10<\/a><\/li>\n\n\n\n<li><a href=\"#How-to-View-User-Information-in-AlmaLinux-10-\">View User Information<\/a><\/li>\n\n\n\n<li><a href=\"#How-to-Modify-an-Existing-User-Account-in-AlmaLinux-10-\">Modify an Existing User Account<\/a><\/li>\n\n\n\n<li><a href=\"#Locking-and-Unlocking-a-User-Account-\">Locking and unlocking a user account<\/a><\/li>\n\n\n\n<li><a href=\"#Deleting-a-User-in-AlmaLinux-10-\">Deleting a User in AlmaLinux 10<\/a><\/li>\n\n\n\n<li><a href=\"#Managing-Users-via-etc-passwd-and-etc-shadow-\">Managing Users via \/etc\/passwd and \/etc\/shadow<\/a><\/li>\n\n\n\n<li><a href=\"#Creating-System-Users-and-Service-Accounts-\">Creating System Users and Service Accounts<\/a><\/li>\n\n\n\n<li id=\"conclusion\"><a href=\"#conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Importance-of-User-Management-in-AlmaLinux-10\"><a id=\"post-16497-_coh0crk8wvyy\"><\/a><strong>Importance of User Management in AlmaLinux 10<\/strong><\/h2>\n\n\n\n<p>Correct user management in AlmaLinux 10 assists you in enforcing the principle of least privilege, that is, each user or service receives just the permissions necessary to perform its job &#8211; no more. This saves you from the attack on your system and the chances of accidental or malicious damage. To any organization that uses AlmaLinux 10 in production, the ability to create users, allocate the appropriate permissions, and delete stale accounts will not be an option, but a security requirement.<\/p>\n\n\n\n<p>The commands in this guide are applicable whether you are operating a single VPS, a bare-metal server, or a fleet of cloud instances. The useradd, usermod, userdel, passwd, and groupadd are common to all RHEL-based distros, and AlmaLinux 10 relies on these commands, making this knowledge highly portable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Understanding-User-Types-in-AlmaLinux-10-\"><a id=\"post-16497-_12pfncoxry75\"><\/a><strong>Understanding User Types in AlmaLinux 10 <\/strong><\/h2>\n\n\n\n<p>There are three major types of users, which are present on an AlmaLinux 10 system, before you begin creating or deleting users.<\/p>\n\n\n\n<p><strong>&#8211; Root User (UID 0)<\/strong>: The root user is the superuser who has unlimited access to all files, processes, and commands on the system. In production environments, direct root login is not recommended, and instead, sudo-based access should be used to audit and enhance security.<\/p>\n\n\n\n<p><strong>&#8211; Regular (Normal) Users<\/strong>: These are human users who are created to be used in interactive login. On AlmaLinux 10, their UID normally begins at 1000. Every ordinary user is assigned a home directory in the path\/home\/username and a default login shell.<\/p>\n\n\n\n<p><strong>&#8211; System Users (Service Accounts)<\/strong>: Service accounts are automatically generated by software packages or created manually by administrators to execute system services, including web servers, databases, and daemons. UIDs below 1000 are typically used by system users, who do not have a home directory, nor have a valid login shell, and thus cannot log in interactively.<\/p>\n\n\n\n<p>This difference is critical when you run useradd with or without the flag system, and when you issue UIDs and GIDs when creating accounts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Prerequisites-\"><a id=\"post-16497-_ul0a05brvzi2\"><\/a><strong>Prerequisites <\/strong><\/h2>\n\n\n\n<p>To follow this tutorial, you will require the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An operational AlmaLinux 10 server or virtual machine.<\/li>\n\n\n\n<li>A sudo user account, or root access.<\/li>\n\n\n\n<li>General knowledge of the Linux terminal.<\/li>\n<\/ul>\n\n\n\n<p>To <a href=\"https:\/\/greenwebpage.com\/community\/how-to-check-almalinux-version\/\">identify the version of AlmaLinux<\/a>, run:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>cat \/etc\/almalinux-release<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"923\" height=\"109\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-1.png\" alt=\"cat \/etc\/almalinux-release\" class=\"wp-image-16498\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-1.png 923w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-1-300x35.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-1-768x91.png 768w\" sizes=\"(max-width: 923px) 100vw, 923px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To check whether you have sudo access, run:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo whoami<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"925\" height=\"135\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-2.png\" alt=\"sudo whoami\" class=\"wp-image-16499\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-2.png 925w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-2-300x44.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-2-768x112.png 768w\" sizes=\"(max-width: 925px) 100vw, 925px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>When the output gives root, then your sudo settings are correct, and you are all set to move on.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Creating-a-New-User-in-AlmaLinux-10-\"><a id=\"post-16497-_nmwyl34n9cu8\"><\/a><strong>Creating a New User in AlmaLinux 10 <\/strong><\/h2>\n\n\n\n<p>The most common command used to create a new user account in AlmaLinux 10 is useradd. This command will not only create the user account but will also configure a home directory, assign a UID and GID, and default shell settings, all in one command.<\/p>\n\n\n\n<p>Basic Syntax<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo useradd username<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p>Example: Creating a User Named &#8220;john&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo useradd john<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"923\" height=\"108\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-3.png\" alt=\"sudo useradd john\" class=\"wp-image-16500\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-3.png 923w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-3-300x35.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-3-768x90.png 768w\" sizes=\"(max-width: 923px) 100vw, 923px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This command will create a user named john with the following defaults:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Home directory<\/strong>: \/home\/john (created automatically)<\/li>\n\n\n\n<li><strong>Default shell<\/strong>: \/bin\/bash<\/li>\n\n\n\n<li><strong>UID<\/strong>: Generated automatically (UID number next)<\/li>\n\n\n\n<li><strong>Primary group<\/strong>: A new group of john is also formed.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-16497-_q6uy6dmr3jky\"><\/a><strong>Verify the User Was Created<\/strong><\/h3>\n\n\n\n<p>Once the user has been created, confirm that the account has been created by viewing the \/etc\/passwd file:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>grep john \/etc\/passwd<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"112\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-4.png\" alt=\"grep john \/etc\/passwd\" class=\"wp-image-16501\" style=\"width:924px;height:auto\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-4.png 924w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-4-300x36.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-4-768x93.png 768w\" sizes=\"(max-width: 924px) 100vw, 924px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Every field in this output has its fields separated by colons, and the following fields, in that order, represent: username, password placeholder, UID, GID, GECOS (comment), home directory, and login shell.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Setting-and-Changing-User-Passwords-\"><a id=\"post-16497-_z76kxfxxsxpi\"><\/a><strong>Setting and Changing User Passwords <\/strong><\/h2>\n\n\n\n<p>A new user account in AlmaLinux 10 will not be given a password, implying that the account will be locked and the user will not be able to log in. Once you have created the account, you will be required to set a password.<\/p>\n\n\n\n<p>Create a password for a new user.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo passwd john<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"925\" height=\"209\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-5.png\" alt=\"sudo passwd john\" class=\"wp-image-16502\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-5.png 925w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-5-300x68.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-5-768x174.png 768w\" sizes=\"(max-width: 925px) 100vw, 925px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Entering the new password will be requested. Changing the user password of user john.<\/p>\n\n\n\n<p>Here, passwd: all authentication tokens updated successfully.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-16497-_xnusi7m7baba\"><\/a><strong>Change Your Password<\/strong><\/h3>\n\n\n\n<p>The user does not need to be the root user to change his\/her password, which can be done by simply running:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>passwd<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"926\" height=\"152\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-6.png\" alt=\"passwd\" class=\"wp-image-16503\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-6.png 926w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-6-300x49.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-6-768x126.png 768w\" sizes=\"(max-width: 926px) 100vw, 926px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-16497-_ihq1negi5epl\"><\/a><strong>Force a User to Change Password at Next Login<\/strong><\/h3>\n\n\n\n<p>As an administrator, you might desire to make a user change his\/her password on the first login. Enter the -e (expire) flag, passwd command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo passwd -e john<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"106\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-7.png\" alt=\"\" class=\"wp-image-16504\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-7.png 920w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-7-300x35.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-7-768x88.png 768w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Once this command has been run, john will be advised to change their password on the next login into the system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Create-a-User-with-Specific-Options-in-AlmaLinux-10-\"><a id=\"post-16497-_yupso738yjf\"><\/a><strong>Create a User with Specific Options in AlmaLinux 10 <\/strong><\/h2>\n\n\n\n<p>The useradd command has numerous helpful flags that enable you to tailor the account during its creation. With these choices, it saves more time than the first option, which creates the account and subsequently updates it.<\/p>\n\n\n\n<p>Create a User with a Comment (Full Name)<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo useradd -c &#8220;John Smith&#8221; johnson<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"79\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-8.png\" alt=\"sudo useradd -c &quot;John Smith&quot; johnson\" class=\"wp-image-16505\" style=\"width:924px;height:auto\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-8.png 924w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-8-300x26.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-8-768x66.png 768w\" sizes=\"(max-width: 924px) 100vw, 924px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The -c option includes a comment (usually the complete name of the user) that is saved in the GECOS field of \/etc\/passwd and can be helpful in identifying a user with a multi-user system.<\/p>\n\n\n\n<p>Create a User with a Custom Home Directory<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo useradd -d \/opt\/joh joh<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"918\" height=\"79\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-9.png\" alt=\"sudo useradd -d \/opt\/joh joh\" class=\"wp-image-16506\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-9.png 918w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-9-300x26.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-9-768x66.png 768w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This makes the user joh whose home directory is not \/home\/joh but rather \/opt\/joh.<\/p>\n\n\n\n<p>Create a User with a Specific UID<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo useradd -u 1500 john11<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"917\" height=\"78\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-10.png\" alt=\"sudo useradd -u 1500 john11\" class=\"wp-image-16507\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-10.png 917w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-10-300x26.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-10-768x65.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-10-900x78.png 900w\" sizes=\"(max-width: 917px) 100vw, 917px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Using a particular UID can be handy when it is important to have a uniform UID across various servers or when connecting to LDAP or NFS systems.<\/p>\n\n\n\n<p>Create a User with an Expiry Date<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo useradd -e 2026-12-31 john2<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"82\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-11.png\" alt=\"sudo useradd -e 2026-12-31 john2\" class=\"wp-image-16508\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-11.png 921w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-11-300x27.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-11-768x68.png 768w\" sizes=\"(max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This will cause the account to automatically expire on December 31, 2026. The user will not be able to log in after the expiry date without an administrative intervention. This feature is best suited to make temporary accounts of contractors or interns.<\/p>\n\n\n\n<p>Create a User with Multiple Options at Once<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo useradd -c &#8220;John Smith&#8221; -d \/home\/john3 -s \/bin\/bash -u 1800 -e 2026-12-31 john6<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"926\" height=\"103\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-12.png\" alt=\"sudo useradd -c &quot;John Smith&quot; -d \/home\/john3 -s \/bin\/bash -u 1800 -e 2026-12-31 john6\" class=\"wp-image-16509\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-12.png 926w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-12-300x33.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-12-768x85.png 768w\" sizes=\"(max-width: 926px) 100vw, 926px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The use of two or more flags within a command is an effective and clean method of creating a user in AlmaLinux 10.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Add-a-User-to-a-Group-in-AlmaLinux-10-\"><a id=\"post-16497-_3452sgbmdgdf\"><\/a><strong>How to Add a User to a Group in AlmaLinux 10 <\/strong><\/h2>\n\n\n\n<p>Linux Permissions in Linux. Groups enable you to give permission to more than one user. As an illustration, a user is added to the wheel group, where the user is given sudo privileges on AlmaLinux 10.<\/p>\n\n\n\n<p>Add a User to the wheel Group (Grant sudo Access)<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo usermod -aG wheel john<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"923\" height=\"79\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-13.png\" alt=\"sudo usermod -aG wheel john\" class=\"wp-image-16510\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-13.png 923w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-13-300x26.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-13-768x66.png 768w\" sizes=\"(max-width: 923px) 100vw, 923px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The -aG flag implies that you are adding to a group -a should not take the user out of the groups he already has and place him in the new one. Always -a -G unless you mean to substitute all the supplementary groups.<\/p>\n\n\n\n<p>Add a User to Multiple Groups at Once<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo usermod -aG wheel john<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"923\" height=\"86\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-14.png\" alt=\"\" class=\"wp-image-16511\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-14.png 923w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-14-300x28.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-14-768x72.png 768w\" sizes=\"(max-width: 923px) 100vw, 923px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This makes john a member of three groups at once: wheel.<\/p>\n\n\n\n<p>Create a New Group<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo groupadd developers<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"923\" height=\"77\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-15.png\" alt=\"\" class=\"wp-image-16512\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-15.png 923w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-15-300x25.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-15-768x64.png 768w\" sizes=\"(max-width: 923px) 100vw, 923px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>List All Groups a User Belongs To<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>groups john<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"110\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-16.png\" alt=\"\" class=\"wp-image-16513\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-16.png 920w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-16-300x36.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-16-768x92.png 768w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Or for more detailed output, including GIDs:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>id john<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"113\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-17.png\" alt=\"\" class=\"wp-image-16514\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-17.png 922w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-17-300x37.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-17-768x94.png 768w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Verify Group Membership from \/etc\/group.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>.grep john \/etc\/group<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"369\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-18.png\" alt=\"\" class=\"wp-image-16515\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-18.png 924w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-18-300x120.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-18-768x307.png 768w\" sizes=\"(max-width: 924px) 100vw, 924px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-View-User-Information-in-AlmaLinux-10-\"><a id=\"post-16497-_8mldelodzodq\"><\/a><strong>How to View User Information in AlmaLinux 10 <\/strong><\/h2>\n\n\n\n<p>AlmaLinux 10 offers a number of commands to view the user account information. These are needed in auditing, troubleshooting, and ensuring that accounts are set up.<\/p>\n\n\n\n<p>View Basic User Info<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>id john<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"113\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-19.png\" alt=\"\" class=\"wp-image-16516\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-19.png 922w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-19-300x37.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-19-768x94.png 768w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>View the \/etc\/passwd Entry.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>.grep john \/etc\/passwd<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"112\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-20.png\" alt=\"\" class=\"wp-image-16517\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-20.png 924w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-20-300x36.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-20-768x93.png 768w\" sizes=\"(max-width: 924px) 100vw, 924px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>View Password and Aging Information<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo chage -l john<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"334\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-21.png\" alt=\"\" class=\"wp-image-16518\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-21.png 922w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-21-300x109.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-21-768x278.png 768w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This command shows the account aging information, such as the account&#8217;s last password, password expiry date, account expiry date, and days of inactivity before the account is locked.<\/p>\n\n\n\n<p>List All Users on the System<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>cut -d: -f1 \/etc\/passwd<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"919\" height=\"309\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-22.png\" alt=\"\" class=\"wp-image-16519\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-22.png 919w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-22-300x101.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-22-768x258.png 768w\" sizes=\"(max-width: 919px) 100vw, 919px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This command will extract and list only the usernames in \/etc\/passwd, which will yield you a clean list of all user accounts (and system accounts) on the AlmaLinux 10 server.<\/p>\n\n\n\n<p>List Only Human (Interactive) Users<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>awk -F: &#8216;$3 &gt;= 1000 &amp;&amp; $3 != 65534 {print $1}&#8217; \/etc\/passwd<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"416\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-23.png\" alt=\"\" class=\"wp-image-16520\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-23.png 924w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-23-300x135.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-23-768x346.png 768w\" sizes=\"(max-width: 924px) 100vw, 924px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>It is a command that restricts the \/etc\/Passwd to only reveal accounts whose UID is 1000 or higher, which is equivalent to that of normal human user accounts within AlmaLinux 10.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Modify-an-Existing-User-Account-in-AlmaLinux-10-\"><a id=\"post-16497-_khjvi1c76sz\"><\/a><strong>How to Modify an Existing User Account in AlmaLinux 10 <\/strong><\/h2>\n\n\n\n<p>The usermod command modifies the attributes of an already existing user account, without the need to delete and create a new account.<\/p>\n\n\n\n<p>Change a User&#8217;s Login Name<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo usermod -l newusername oldusername<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"926\" height=\"79\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-24.png\" alt=\"\" class=\"wp-image-16521\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-24.png 926w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-24-300x26.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-24-768x66.png 768w\" sizes=\"(max-width: 926px) 100vw, 926px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This changes the name of the login without changing the home directory. In case it is necessary, you have to rename the home directory independently.<\/p>\n\n\n\n<p>Change a User&#8217;s Home Directory<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo usermod -d \/new\/home\/john -m henry<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"916\" height=\"105\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-25.png\" alt=\"\" class=\"wp-image-16522\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-25.png 916w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-25-300x34.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-25-768x88.png 768w\" sizes=\"(max-width: 916px) 100vw, 916px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The -m flag tells usermod to move the contents of the old home directory to the new location.<\/p>\n\n\n\n<p>Change a User&#8217;s Comment (Full Name)<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo usermod -c &#8220;Johnathan Smith&#8221; john1<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"79\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-26.png\" alt=\"\" class=\"wp-image-16523\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-26.png 922w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-26-300x26.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-26-768x66.png 768w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Change a User&#8217;s UID<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo usermod -u 1900 john1<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"77\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-27.png\" alt=\"\" class=\"wp-image-16524\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-27.png 922w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-27-300x25.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-27-768x64.png 768w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Set an Account Expiry Date on an Existing Account<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo usermod -e 2027-06-30 john1<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"72\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-28.png\" alt=\"\" class=\"wp-image-16525\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-28.png 914w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-28-300x24.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-28-768x60.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-28-900x72.png 900w\" sizes=\"(max-width: 914px) 100vw, 914px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Remove Account Expiry (Make Account Permanent)<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo usermod -e &#8220;&#8221; john1<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"74\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-29.png\" alt=\"\" class=\"wp-image-16526\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-29.png 920w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-29-300x24.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-29-768x62.png 768w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Entering a blank string as -e will enable the removal of the expiry date to make the account permanent.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Locking-and-Unlocking-a-User-Account-\"><a id=\"post-16497-_cxapyl4rztzt\"><\/a><strong>Locking and Unlocking a User Account <\/strong><\/h2>\n\n\n\n<p>There are occasions when you require temporarily disabling a user account without necessarily deleting it, such as when an employee is on long leave or when there are suspicions that a security incident has occurred.<\/p>\n\n\n\n<p>Lock a User Account<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo usermod -L john1<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"917\" height=\"77\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-30-1.png\" alt=\"\" class=\"wp-image-16528\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-30-1.png 917w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-30-1-300x25.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-30-1-768x64.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-30-1-900x77.png 900w\" sizes=\"(max-width: 917px) 100vw, 917px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Alternatively, use the passwd command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo passwd -l john1<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"907\" height=\"107\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-31.png\" alt=\"\" class=\"wp-image-16529\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-31.png 907w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-31-300x35.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-31-768x91.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-31-900x107.png 900w\" sizes=\"(max-width: 907px) 100vw, 907px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Locking the user account will add an exclamation mark to the password hash in \/etc\/shadow, which will not allow password-based authentication but leave the account and all its data unchanged.<\/p>\n\n\n\n<p>Verify Lock Status<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo passwd -S john1<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"112\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-32.png\" alt=\"\" class=\"wp-image-16530\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-32.png 922w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-32-300x36.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-32-768x93.png 768w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The output will show LK (locked) or PS (password set\/active) in the second field, letting you quickly confirm the current state of the account.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Deleting-a-User-in-AlmaLinux-10-\"><a id=\"post-16497-_riq12xn621m3\"><\/a><strong>Deleting a User in AlmaLinux 10 <\/strong><\/h2>\n\n\n\n<p>The userdel command is used to delete a user account in AlmaLinux 10. You can simply delete the account, or you can delete the account and its home directory and mail spool.<\/p>\n\n\n\n<p>Delete a User Account (Keep Home Directory)<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo userdel john1<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"926\" height=\"78\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-33.png\" alt=\"\" class=\"wp-image-16531\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-33.png 926w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-33-300x25.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-33-768x65.png 768w\" sizes=\"(max-width: 926px) 100vw, 926px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This will take the user out of \/etc\/passwd, \/etc\/shadow, and \/etc\/group, but does not take the home directory, \/home\/john, and its contents. This will be the best method in case you might need to access the user&#8217;s data after deleting the account.<\/p>\n\n\n\n<p>Delete a User Account and Remove Home Directory<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo userdel -r john2<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"915\" height=\"80\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-34.png\" alt=\"\" class=\"wp-image-16532\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-34.png 915w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-34-300x26.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-34-768x67.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-34-900x80.png 900w\" sizes=\"(max-width: 915px) 100vw, 915px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The -r option deletes the user&#8217;s home directory, mail spool, and account. This flag should be used when you are sure that the user no longer needs his\/her data.<\/p>\n\n\n\n<p>Find Files Owned by a Deleted User<\/p>\n\n\n\n<p>After deleting a user, files they owned will show their former UID (a number) instead of a username in the ls -l output. These orphaned files can be found with:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo find \/ -nouser -print 2&gt;\/dev\/null<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"916\" height=\"289\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-35.png\" alt=\"\" class=\"wp-image-16533\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-35.png 916w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-35-300x95.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-35-768x242.png 768w\" sizes=\"(max-width: 916px) 100vw, 916px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Another step to take in cleaning up after the deletion of an account is to review and reassign or remove these orphaned files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Managing-Users-via-etc-passwd-and-etc-shadow-\"><a id=\"post-16497-_kvd8n96cnf2o\"><\/a><strong>Managing Users via \/etc\/passwd and \/etc\/shadow <\/strong><\/h2>\n\n\n\n<p>Learning the important configuration files behind AlmaLinux 10 user management provides you with more control and assists in troubleshooting.<\/p>\n\n\n\n<p><strong>The \/etc\/passwd File<\/strong><\/p>\n\n\n\n<p>Basic account information is placed in the \/etc\/Passwd file. Every line is one user account with seven fields that are separated by a colon:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>username:x:UID:GID:comment:home_directory:login_shell<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p>The x in the second field means that the encrypted password is in \/etc\/shadow (readable only by root), rather than in this file.<\/p>\n\n\n\n<p><strong>The \/etc\/shadow File<\/strong><\/p>\n\n\n\n<p>The passwords and account aging data are encrypted and stored in the\/etc\/ shadows file. There are nine fields in every line separated by a colon:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>username:encrypted_password:last_change:min:max:warn:inactive:expire:reserved<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p>These files are highly discouraged as a direct way to edit, but rather the accepted tools (useradd, usermod, passwd, etc.), since the occurrence of a syntax error in either of the files can put all the users in the system (including root) out of business.<\/p>\n\n\n\n<p><strong>The \/etc\/group File<\/strong><\/p>\n\n\n\n<p>There is a group definition stored in the \/etc\/group file:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>groupname:x:GID:member1,member2,member3<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p>Add, modify, and delete groups with groupadd, groupmod, and groupdel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Creating-System-Users-and-Service-Accounts-\"><a id=\"post-16497-_o3h9qeyk5d3\"><\/a><strong>Creating System Users and Service Accounts <\/strong><\/h2>\n\n\n\n<p>Non-login accounts used by services and daemons are called system users. They are set up with UIDs less than 1000 and should not have a valid shell or home directory unless required to do so.<\/p>\n\n\n\n<p>Create a System User<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo useradd &#8211;system &#8211;no-create-home &#8211;shell \/sbin\/nologin myservice<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"918\" height=\"108\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-36.png\" alt=\"\" class=\"wp-image-16534\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-36.png 918w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-36-300x35.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/word-image-16497-36-768x90.png 768w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Breaking down this command:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The system will assign a UID less than 1000, and the account will be a system account.<\/li>\n\n\n\n<li>home creation is bypassed by no-create-home.<\/li>\n\n\n\n<li>shell \/sbin\/nologin allocates a shell that immediately quits in case any person tries to log on interactively, which in effect prevents the process of login, and the service can still be run under this account.<\/li>\n<\/ul>\n\n\n\n<p>This is the common and safe way of establishing service accounts on AlmaLinux 10 and other distributions based on RHEL.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-16497-_x4i71slzghxt\"><\/a><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>To manage user accounts in AlmaLinux 10, you primarily use terminal commands with root or sudo privileges. To create a new user, execute sudo useradd -m username, where the -m flag ensures a home directory is automatically generated. Immediately follow this by setting a password with the sudo passwd username command, as new accounts are locked by default.<\/p>\n\n\n\n<p>Finally, to delete a user, use sudo userdel username; adding the -r flag (e.g., sudo userdel -r username) is recommended to permanently remove the user&#8217;s home directory and mail spool along with the account. For those who prefer a graphical interface, these tasks can also be performed via the Settings &gt; Users menu in the GNOME Desktop environment.<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>AlmaLinux 10 is a community-based and enterprise-level Linux distribution that is a downstream replica of Red Hat Enterprise Linux (RHEL). User account management is one of the most essential administrative functions on any Linux server. This step-by-step tutorial describes all things you must know about AlmaLinux 10 user management &#8211; adding and assigning users, assigning [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":16541,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[1033,1024,1034,1032,296],"class_list":["post-16497","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-add-user-to-group","tag-almalinux-10","tag-change-password","tag-create-user","tag-delete-user"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create, Manage, and Delete Users in AlmaLinux 10 - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"This step-by-step tutorial describes all things you must know about AlmaLinux 10 user management - adding and assigning users, assigning groups, setting passwords, modifying account properties, and safely deleting users at the command line.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create, Manage, and Delete Users in AlmaLinux 10 - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"This step-by-step tutorial describes all things you must know about AlmaLinux 10 user management - adding and assigning users, assigning groups, setting passwords, modifying account properties, and safely deleting users at the command line.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-16T09:24:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-16T10:18:18+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/How-to-Create-Manage-and-Delete-Users-in-AlmaLinux-10-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"18 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Create, Manage, and Delete Users in AlmaLinux 10\",\"datePublished\":\"2026-04-16T09:24:33+00:00\",\"dateModified\":\"2026-04-16T10:18:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/\"},\"wordCount\":2428,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/How-to-Create-Manage-and-Delete-Users-in-AlmaLinux-10-1.jpg\",\"keywords\":[\"add user to group\",\"AlmaLinux 10\",\"change password\",\"create user\",\"Delete User\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/\",\"name\":\"How to Create, Manage, and Delete Users in AlmaLinux 10 - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/How-to-Create-Manage-and-Delete-Users-in-AlmaLinux-10-1.jpg\",\"datePublished\":\"2026-04-16T09:24:33+00:00\",\"dateModified\":\"2026-04-16T10:18:18+00:00\",\"description\":\"This step-by-step tutorial describes all things you must know about AlmaLinux 10 user management - adding and assigning users, assigning groups, setting passwords, modifying account properties, and safely deleting users at the command line.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/How-to-Create-Manage-and-Delete-Users-in-AlmaLinux-10-1.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/How-to-Create-Manage-and-Delete-Users-in-AlmaLinux-10-1.jpg\",\"width\":1020,\"height\":600,\"caption\":\"How to Create, Manage, and Delete Users in AlmaLinux 10\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create, Manage, and Delete Users in AlmaLinux 10\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create, Manage, and Delete Users in AlmaLinux 10 - Greenwebpage Community","description":"This step-by-step tutorial describes all things you must know about AlmaLinux 10 user management - adding and assigning users, assigning groups, setting passwords, modifying account properties, and safely deleting users at the command line.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/","og_locale":"en_US","og_type":"article","og_title":"How to Create, Manage, and Delete Users in AlmaLinux 10 - Greenwebpage Community","og_description":"This step-by-step tutorial describes all things you must know about AlmaLinux 10 user management - adding and assigning users, assigning groups, setting passwords, modifying account properties, and safely deleting users at the command line.","og_url":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/","og_site_name":"Greenwebpage Community","article_published_time":"2026-04-16T09:24:33+00:00","article_modified_time":"2026-04-16T10:18:18+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/How-to-Create-Manage-and-Delete-Users-in-AlmaLinux-10-1.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"18 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Create, Manage, and Delete Users in AlmaLinux 10","datePublished":"2026-04-16T09:24:33+00:00","dateModified":"2026-04-16T10:18:18+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/"},"wordCount":2428,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/How-to-Create-Manage-and-Delete-Users-in-AlmaLinux-10-1.jpg","keywords":["add user to group","AlmaLinux 10","change password","create user","Delete User"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/","url":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/","name":"How to Create, Manage, and Delete Users in AlmaLinux 10 - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/How-to-Create-Manage-and-Delete-Users-in-AlmaLinux-10-1.jpg","datePublished":"2026-04-16T09:24:33+00:00","dateModified":"2026-04-16T10:18:18+00:00","description":"This step-by-step tutorial describes all things you must know about AlmaLinux 10 user management - adding and assigning users, assigning groups, setting passwords, modifying account properties, and safely deleting users at the command line.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/How-to-Create-Manage-and-Delete-Users-in-AlmaLinux-10-1.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2026\/04\/How-to-Create-Manage-and-Delete-Users-in-AlmaLinux-10-1.jpg","width":1020,"height":600,"caption":"How to Create, Manage, and Delete Users in AlmaLinux 10"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-create-manage-and-delete-users-in-almalinux-10\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Create, Manage, and Delete Users in AlmaLinux 10"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/16497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=16497"}],"version-history":[{"count":15,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/16497\/revisions"}],"predecessor-version":[{"id":16554,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/16497\/revisions\/16554"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/16541"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=16497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=16497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=16497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}