{"id":51684,"date":"2026-04-20T12:30:00","date_gmt":"2026-04-20T17:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=51684"},"modified":"2026-03-16T05:49:05","modified_gmt":"2026-03-16T10:49:05","slug":"how-to-add-user-to-sudoers-in-ubuntu-26-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/","title":{"rendered":"How to Add User to Sudoers in Ubuntu 26.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp\" alt=\"How to add User to Sudoers in Ubuntu 26.04\" class=\"wp-image-51747\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/how-to-add-user-to-sudoers-in-ubuntu-26.04-300x169.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/how-to-add-user-to-sudoers-in-ubuntu-26.04-150x84.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/how-to-add-user-to-sudoers-in-ubuntu-26.04-768x432.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>When managing a server, you may sometimes want to allow users to run commands as root. In Ubuntu, sudo access allows users to run commands with the privileges of the root user. This is essential for performing system administration tasks, such as installing software, managing users, and configuring systems. In this guide, we&#8217;ll discuss how to add a user to Sudoers in Ubuntu 26.04.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e6be1b3334e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e6be1b3334e\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#What-is-Sudo\" >What is Sudo?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#What-is-root-access\" >What is root access?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#Step-1-Log-in-to-Your-Server\" >Step 1. Log in to Your Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#Step-2-Add-a-New-User\" >Step 2. Add a New User<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#Step-3-Add-User-to-the-Sudo-Group\" >Step 3. Add User to the Sudo Group<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#Step-4-Test-Sudo-Access\" >Step 4. Test Sudo Access<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#In-Conclusion\" >In Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\">Ubuntu 26.<\/a><a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">0<\/a><a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\">4 VPS<\/a><\/li>\n\n\n\n<li>SSH root access or a regular system user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-conventions\">Conventions<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># \u2013 given commands should be executed with root privileges either directly as a root user or by use of sudo command\n$ \u2013 given commands should be executed as a regular user<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-sudo\"><span class=\"ez-toc-section\" id=\"What-is-Sudo\"><\/span>What is Sudo?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Sudo, short for SuperUser Do, is a command in Unix-based operating systems (Linux and macOS). This command allows users to run commands with administrator (root) privileges. This means that sudo grants users permission to perform tasks normally only accessible to the root user, such as installing software, changing system configurations, or managing users.<\/p>\n\n\n\n<p>Sudo&#8217;s primary purpose is to improve system security. Instead of granting full access to the root account, users can be granted the ability to run certain commands with elevated privileges without logging in directly as root. Users authorized to use sudo are usually members of the sudo group or a similar group in Linux distributions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-root-access\"><span class=\"ez-toc-section\" id=\"What-is-root-access\"><\/span>What is root access?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In Linux, the term &#8216;root&#8217; refers to the system administrator account. This account has complete control over the operating system, allowing it to modify any file, manage hardware, and bypass security measures. To modify system configuration files, install new applications, create user accounts, or perform any actions outside your home directory, you need root access.<\/p>\n\n\n\n<p>The root account is the most powerful user account within the system. It has unrestricted access and can change anything \u2014 including files, settings, installed software, and system configurations \u2014 and it can also grant or revoke permissions for any user or process. Regular users (those without root access) do not have these extensive administrative privileges.<\/p>\n\n\n\n<p>The root user is automatically a member of the root group; however, being in this group does not inherently grant the same superuser capabilities. Membership in the root group only confers privileges when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Specific files or directories are owned by the root group and have the appropriate group permissions set (such as read\/write\/execute for the group), or<\/li>\n\n\n\n<li>Additional mechanisms (most commonly sudo) have been configured to allow users in the root group (or other groups such as wheel, sudo, or admin) to elevate their privileges.<\/li>\n<\/ul>\n\n\n\n<p>If you wish to grant a user root privileges, it is highly advisable to add them to the wheel or sudo group instead.<\/p>\n\n\n\n<p>So, to add a user with sudo access on an Ubuntu machine, follow these steps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-1-log-in-to-your-server\"><span class=\"ez-toc-section\" id=\"Step-1-Log-in-to-Your-Server\"><\/span>Step 1. Log in to Your Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First of all, we need to log in to our Ubuntu 26.04 VPS through SSH:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@IP_Address -p Port_number<\/code><\/pre>\n\n\n\n<p>Replace &#8220;root&#8221; with a user that has sudo privileges. Additionally, replace &#8220;IP_Address&#8221; and &#8220;Port_Number&#8221; with your server\u2019s respective IP address and SSH port number. Next, let\u2019s make sure that we\u2019re on Ubuntu 26.04. You can verify it with this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># lsb_release -a<\/code><\/pre>\n\n\n\n<p>You should get this as the output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>No LSB modules are available.\nDistributor ID: Ubuntu\nDescription:    Ubuntu Resolute Raccoon \nRelease:        26.04\nCodename:       resolute<\/code><\/pre>\n\n\n\n<p>Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt update <\/code><\/pre>\n\n\n\n<p>That&#8217;s it, the system package information should be updated now.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-2-add-a-new-user\"><span class=\"ez-toc-section\" id=\"Step-2-Add-a-New-User\"><\/span>Step 2. Add a New User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>After logging in to the server as the root user, use the adduser command to add a new user to your system:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># adduser master<\/pre>\n\n\n\n<p>Make sure to replace master with the username you want to add. You will be prompted to create and verify a password for the user.<\/p>\n\n\n\n<p>You will be asked to fill in some information about the new user you are adding. It&#8217;s okay to use the default information and leave it blank.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Changing the user information for master<br>Enter the new value, or press ENTER for the default<br>Full Name []:<br>Room Number []:<br>Work Phone []:<br>Home Phone []:<br>Other []:<br>Is the information correct? [Y\/n]<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-3-add-user-to-the-sudo-group\"><span class=\"ez-toc-section\" id=\"Step-3-Add-User-to-the-Sudo-Group\"><\/span>Step 3. Add User to the Sudo Group<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Users authorized to use sudo are usually in the sudo group. To give a regular user full sudo access (i.e., the ability to run commands as root with sudo), add them to the sudo group using usermod.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># usermod -aG sudo master<\/code><\/pre>\n\n\n\n<p>Or, we can also use the gpasswd command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># gpasswd --add master sudo<\/code><\/pre>\n\n\n\n<p>In addition to the commands above, you can use visudo to add users to the sudo group. Simply run the command below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># visudo<\/code><\/pre>\n\n\n\n<p>Scroll down, then append this line below<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>master ALL=(ALL) NOPASSWD:ALL<\/code><\/pre>\n\n\n\n<p>Save the file, but before doing so, make sure to replace &#8220;master&#8221; with an existing system user on your Ubuntu 26.04. You can add the NOPASSWD: tag to allow specific commands (or all commands) to run via sudo without prompting for the user&#8217;s password. This is convenient for scripts, automation (e.g., cron jobs, Ansible playbooks), or headless servers, but it significantly reduces security. Anyone who gains access to that account can immediately execute privileged commands without authentication.<\/p>\n\n\n\n<p>Another example is allowing a user to run only certain commands with sudo. For example, to allow only the mkdir and rmdir commands, you would use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>master ALL=(ALL) NOPASSWD:\/bin\/ls,\/bin\/mkdir<\/code><\/pre>\n\n\n\n<p>Instead of editing the main \/etc\/sudoers file with visudo, a cleaner, more maintainable, and safer approach is to create a separate configuration file in the \/etc\/sudoers.d\/ directory.<\/p>\n\n\n\n<p>Ubuntu (and most modern Debian-based systems) automatically includes all files in this directory (as long as they follow the naming rules and have the correct permissions). This keeps your main \/etc\/sudoers file untouched and makes it easy to enable\/disable or remove custom rules without risking syntax errors in the primary file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># echo \"master ALL=(ALL) NOPASSWD:ALL\" | tee \/etc\/sudoers.d\/master<\/code><\/pre>\n\n\n\n<p>To check your new sudoer permission, you can run the command below as the sudoer:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo -l<\/code><\/pre>\n\n\n\n<p>The command above will print this message to you:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Matching Defaults entries for master on ubuntu26:\n    env_reset, mail_badpass, secure_path=\/usr\/local\/sbin\\:\/usr\/local\/bin\\:\/usr\/sbin\\:\/usr\/bin\\:\/sbin\\:\/bin\\:\/snap\/bin, use_pty\n\nUser master may run the following commands on ubuntu24:\n    (ALL : ALL) ALL<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-4-test-sudo-access\"><span class=\"ez-toc-section\" id=\"Step-4-Test-Sudo-Access\"><\/span>Step 4. Test Sudo Access<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The final step in adding a user with sudo on Ubuntu is to test whether the new access works. To do this, enter the su command to switch to the user account.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># su - master<\/code><\/pre>\n\n\n\n<p>Then, verify that you can use sudo by adding the command to run with privileges, for example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo top<\/code><\/pre>\n\n\n\n<p>Another example: you can list the contents of the \/root directory, which is normally only accessible to the root user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo ls -la \/root<\/code><\/pre>\n\n\n\n<p>The first time you use this session, you will be prompted for the password for that user account. Enter the password to continue.<\/p>\n\n\n\n<p>Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;sudo] password for master:<\/code><\/pre>\n\n\n\n<p>This command will not prompt for the root password! Enter the password for the user with sudo access you just created.<\/p>\n\n\n\n<p>If the user you added is in the correct group and you successfully entered the correct password, the command you issued will be successfully executed with root privileges.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-in-conclusion\"><span class=\"ez-toc-section\" id=\"In-Conclusion\"><\/span>In Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>That&#8217;s it all! You have just learned how to add a user to the sudoer group in Ubuntu 26.04.<\/p>\n\n\n\n<p>Of course, you don\u2019t have to add a user to sudoers on Ubuntu 26.04 yourself if you use one of our <a href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">managed hosting services<\/a>, in which case you can simply ask our expert Linux admins to do it for you. Our expert administrators are available 24\u00d77 and will take care of your request immediately. Simply log in to the client area, then submit a ticket, and we will add a user to sudo in no time.<\/p>\n\n\n\n<p>If you liked this post on how to add a user to sudoers on Ubuntu 26.04, please share it with your friends or leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When managing a server, you may sometimes want to allow users to run commands as root. In Ubuntu, sudo access &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Add User to Sudoers in Ubuntu 26.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#more-51684\" aria-label=\"Read more about How to Add User to Sudoers in Ubuntu 26.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":51747,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1698],"tags":[2301,2153,2310,2290,2308],"class_list":["post-51684","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-add-user-to-sudoers","tag-how-to-2","tag-permissions","tag-sudoers","tag-ubuntu-26-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Add User to Sudoers in Ubuntu 26.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Find out how to seamlessly add a User to Sudoers in Ubuntu 26.04 and unlock powerful command privileges for system tasks.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add User to Sudoers in Ubuntu 26.04\" \/>\n<meta property=\"og:description\" content=\"How to Add User to Sudoers in Ubuntu 26.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-20T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Add User to Sudoers in Ubuntu 26.04\",\"datePublished\":\"2026-04-20T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/\"},\"wordCount\":1183,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp\",\"keywords\":[\"add user to sudoers\",\"how to\",\"permissions\",\"sudoers\",\"ubuntu 26.04\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/\",\"name\":\"How to Add User to Sudoers in Ubuntu 26.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp\",\"datePublished\":\"2026-04-20T17:30:00+00:00\",\"description\":\"Find out how to seamlessly add a User to Sudoers in Ubuntu 26.04 and unlock powerful command privileges for system tasks.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp\",\"width\":1024,\"height\":576,\"caption\":\"How to add User to Sudoers in Ubuntu 26.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-ubuntu-26-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add User to Sudoers in Ubuntu 26.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Add User to Sudoers in Ubuntu 26.04 | RoseHosting","description":"Find out how to seamlessly add a User to Sudoers in Ubuntu 26.04 and unlock powerful command privileges for system tasks.","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:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Add User to Sudoers in Ubuntu 26.04","og_description":"How to Add User to Sudoers in Ubuntu 26.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2026-04-20T17:30:00+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Add User to Sudoers in Ubuntu 26.04","datePublished":"2026-04-20T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/"},"wordCount":1183,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp","keywords":["add user to sudoers","how to","permissions","sudoers","ubuntu 26.04"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/","name":"How to Add User to Sudoers in Ubuntu 26.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp","datePublished":"2026-04-20T17:30:00+00:00","description":"Find out how to seamlessly add a User to Sudoers in Ubuntu 26.04 and unlock powerful command privileges for system tasks.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/how-to-add-user-to-sudoers-in-ubuntu-26.04.webp","width":1024,"height":576,"caption":"How to add User to Sudoers in Ubuntu 26.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-ubuntu-26-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Add User to Sudoers in Ubuntu 26.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/51684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=51684"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/51684\/revisions"}],"predecessor-version":[{"id":51749,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/51684\/revisions\/51749"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/51747"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=51684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=51684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=51684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}