{"id":48886,"date":"2024-10-02T12:30:00","date_gmt":"2024-10-02T17:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=48886"},"modified":"2024-10-01T06:35:14","modified_gmt":"2024-10-01T11:35:14","slug":"how-to-add-user-to-sudoers-in-debian-12","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/","title":{"rendered":"How to Add User to Sudoers in Debian 12"},"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\/2024\/10\/how-to-add-user-to-sudoers-in-debian-12.webp\" alt=\"How to add user to sudoers in Debian 12\" class=\"wp-image-49400\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/10\/how-to-add-user-to-sudoers-in-debian-12.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/10\/how-to-add-user-to-sudoers-in-debian-12-300x169.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/10\/how-to-add-user-to-sudoers-in-debian-12-150x84.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/10\/how-to-add-user-to-sudoers-in-debian-12-768x432.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Sudo (superuser do) is a command utility allowing trusted users to run commands as root. It is necessary to run a program requiring root access. Only certain users in the sudo\/wheel group can do it. If an unauthorized user attempts to run a command, sudo will notify the administrator via email. By default, this warning notification is saved to the root account. Any user running the command will be prompted for a password. Once authenticated, sudo will create a timestamp for that user. From then on, the user can execute commands for five minutes. Once five minutes have passed, the user will be prompted for a password. If you need to overwrite this grace period, you can do so by changing the settings in the \/etc\/sudoers file. In this article, we will show you how to add user to sudoers in Debian 12 in a step-by-step guide.<\/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-69f3b6b165177\" 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-69f3b6b165177\"  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-debian-12\/#Prerequisites-to-add-user-to-Sudoers-in-Debian-12\" >Prerequisites to add user to Sudoers in Debian 12<\/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-debian-12\/#Conventions\" >Conventions<\/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-debian-12\/#Login-to-the-server\" >Login to the server<\/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-debian-12\/#Add-User-to-Sudoers-File\" >Add User to Sudoers File<\/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-debian-12\/#Add-User-to-Sudo-Group\" >Add User to Sudo Group<\/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-debian-12\/#Congratulations-Youve-learned-how-to-add-user-to-Sudoers-in-Debian-12\" >Congratulations! You&#8217;ve learned how to add user to Sudoers in Debian 12<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Prerequisites-to-add-user-to-Sudoers-in-Debian-12\"><\/span>Prerequisites to add user to Sudoers in Debian 12<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Debian 12<\/li>\n\n\n\n<li>SSH root access or a normal system user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conventions\"><\/span>Conventions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u2013 given commands should be executed with root privileges either directly as a root user or by use of sudo command<br>$ \u2013 given commands should be executed as a regular user<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Login-to-the-server\"><\/span>Login to the server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, log in to your Debian 12 server through SSH as the root user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh root@IP_Address -p Port_number<\/pre>\n\n\n\n<p>You have to replace \u2018IP_Address\u2018 and \u2018Port_number\u2018 with your server\u2019s respective IP address and SSH port number. Replace &#8216;root&#8217; with your other Debian 12 system user with sudo privileges.<\/p>\n\n\n\n<p>You can check whether you have the proper Debian version installed on your server with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lsb_release -a<\/pre>\n\n\n\n<p>You should get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">No LSB modules are available.<br>Distributor ID: Debian<br>Description: Debian GNU\/Linux 12 (bookworm)<br>Release: 12<br>Codename: bookworm<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Add-User-to-Sudoers-File\"><\/span>Add User to Sudoers File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The file at \/etc\/sudoers contains a set of rules that determine which users or groups have sudo privileges. This file allows you to grant specific access to commands and set custom security policies. You can configure user access by editing the sudoers file or creating a new configuration file in the \/etc\/sudoers.d directory. The sudoers file called these files in this directory.<\/p>\n\n\n\n<p>Always use the visudo command to edit the \/etc\/sudoers file; do not edit it with a text editor directly. This command checks the file for syntax errors when you save it. If there are any errors, the file is not saved. If you edit the file with a plain text editor, syntax errors can result in the loss of sudo access.<\/p>\n\n\n\n<p>Visudo uses the editor specified by the EDITOR environment variable; it uses Vim by default. If you want to edit the file with nano, change the variable by running:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># EDITOR=nano visudo<\/pre>\n\n\n\n<p>When adding new users or groups to the sudoers file, it is essential to specify the name of the user or group, the hosts, the users they can run commands as, and the commands to execute. Let\u2019s say you want to allow a user to run sudo commands without being prompted for a password. To achieve this, let&#8217;s open the \/etc\/sudoers file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># visudo<\/pre>\n\n\n\n<p>Scroll down to the end of the file and add the following line:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">username ALL=(ALL) NOPASSWD:ALL<\/pre>\n\n\n\n<p>Replace &#8220;username&#8221; with an existing system user on your Debian 12 machine. Next, save the file and exit the editor. We can use the NOPASSWD tag to execute certain commands without prompting for the user&#8217;s password, which can be beneficial for automation but may increase security vulnerabilities.<\/p>\n\n\n\n<p>Another example is to allow a user to run only certain commands through sudo. For example, to allow only the mkdir and rmdir commands, you would use:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">username ALL=(ALL) NOPASSWD:\/bin\/mkdir,\/bin\/rmdir<\/pre>\n\n\n\n<p>Instead of editing the sudoers file, you can do the same thing by creating a new file with authorization rules in the \/etc\/sudoers.d directory. Add the same rules that you added to the sudoers file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># echo \"username ALL=(ALL) NOPASSWD:ALL\" | sudo tee \/etc\/sudoers.d\/username<\/pre>\n\n\n\n<p>This approach makes managing sudo privileges more tractable. The file name is unimportant, but it is common practice to name the file according to the username.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Add-User-to-Sudo-Group\"><\/span>Add User to Sudo Group<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Besides using the visudo command to add users to sudoers, we can also use another tool called &#8220;usermod&#8221;. Usermod is a command that modifies user accounts on a Linux system. To add a user to the sudo group using the usermod tool command, execute the following:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># usermod -aG sudo username<\/pre>\n\n\n\n<p>Explanation:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The command \"usermod\" is employed to modify an existing user account.<br>The options \"-aG\" indicate that the command should add the user to a specified group.<br>The \"-a\" option permits the user to be added to the group without losing membership in their current groups, while the \"-G\" option specifies the group for the addition. It is crucial that these two options are always used together.<br>The group \"sudo\" is included with the aforementioned options; although \"sudo\" is used here, it can be replaced with any other group. <br>The term \"username\" refers to the user account that is to be added to the sudo group.<\/pre>\n\n\n\n<p>So, if you have an existing system user called &#8220;master&#8221;, you can add it to sudoers by running this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># usermod -aG sudo master<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Congratulations-Youve-learned-how-to-add-user-to-Sudoers-in-Debian-12\"><\/span>Congratulations! You&#8217;ve learned how to add user to Sudoers in Debian 12<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>That&#8217;s it all! You can log in to your server as &#8220;master&#8221; and run sudo commands now.<\/p>\n\n\n\n<p>Congratulation! You have learned how to add user to sudoers. Please note that it is important and crucial to restrict sudo privileges to reduce potential security vulnerabilities. It is also important to assign permissions that are strictly required for specific tasks while steering clear of broad access whenever feasible. Implement command aliases to define permitted commands and utilize user aliases to categorize permissions based on roles rather than individuals, thereby promoting a more scalable and manageable system.<\/p>\n\n\n\n<p>Of course, if you are one of our <a href=\"https:\/\/www.rosehosting.com\/debian-vps-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Debian Hosting<\/a> customers, you don\u2019t have to add user to sudoers on your Debian server \u2013 simply ask our admins, sit back, and relax. Our admins will help you add user to sudoer immediately upon request. Our experienced system administrators are available 24\u00d77 and will take care of your request immediately, and all you need to do is to submit a ticket.<\/p>\n\n\n\n<p>If you liked this post about how to add user to sudoers on Debian 12, please share it with your friends on the social networks using the share buttons below, or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sudo (superuser do) is a command utility allowing trusted users to run commands as root. It is necessary to run &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Add User to Sudoers in Debian 12\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/#more-48886\" aria-label=\"Read more about How to Add User to Sudoers in Debian 12\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":49400,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,1236,2071,1698],"tags":[2191,48,2153],"class_list":["post-48886","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-guides","category-linux","category-ubuntu","tag-dabian-12","tag-debian","tag-how-to-2","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.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Add User to Sudoers in Debian 12 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Learn how to add User to Sudoers in Debian 12 using our easy to follow step-by-step guide, or have our admins do it for you!\" \/>\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-debian-12\/\" \/>\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 Debian 12\" \/>\n<meta property=\"og:description\" content=\"How to Add User to Sudoers in Debian 12 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/\" \/>\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=\"2024-10-02T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/10\/how-to-add-user-to-sudoers-in-debian-12.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=\"5 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-debian-12\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Add User to Sudoers in Debian 12\",\"datePublished\":\"2024-10-02T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/\"},\"wordCount\":912,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/how-to-add-user-to-sudoers-in-debian-12.webp\",\"keywords\":[\"dabian 12\",\"debian\",\"how to\"],\"articleSection\":[\"Debian\",\"Guides\",\"Linux\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/\",\"name\":\"How to Add User to Sudoers in Debian 12 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/how-to-add-user-to-sudoers-in-debian-12.webp\",\"datePublished\":\"2024-10-02T17:30:00+00:00\",\"description\":\"Learn how to add User to Sudoers in Debian 12 using our easy to follow step-by-step guide, or have our admins do it for you!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/how-to-add-user-to-sudoers-in-debian-12.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/how-to-add-user-to-sudoers-in-debian-12.webp\",\"width\":1024,\"height\":576,\"caption\":\"How to add user to sudoers in Debian 12\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-add-user-to-sudoers-in-debian-12\\\/#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 Debian 12\"}]},{\"@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 Debian 12 | RoseHosting","description":"Learn how to add User to Sudoers in Debian 12 using our easy to follow step-by-step guide, or have our admins do it for you!","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-debian-12\/","og_locale":"en_US","og_type":"article","og_title":"How to Add User to Sudoers in Debian 12","og_description":"How to Add User to Sudoers in Debian 12 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2024-10-02T17:30:00+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/10\/how-to-add-user-to-sudoers-in-debian-12.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Add User to Sudoers in Debian 12","datePublished":"2024-10-02T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/"},"wordCount":912,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/10\/how-to-add-user-to-sudoers-in-debian-12.webp","keywords":["dabian 12","debian","how to"],"articleSection":["Debian","Guides","Linux","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/","name":"How to Add User to Sudoers in Debian 12 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/10\/how-to-add-user-to-sudoers-in-debian-12.webp","datePublished":"2024-10-02T17:30:00+00:00","description":"Learn how to add User to Sudoers in Debian 12 using our easy to follow step-by-step guide, or have our admins do it for you!","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/10\/how-to-add-user-to-sudoers-in-debian-12.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2024\/10\/how-to-add-user-to-sudoers-in-debian-12.webp","width":1024,"height":576,"caption":"How to add user to sudoers in Debian 12"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-add-user-to-sudoers-in-debian-12\/#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 Debian 12"}]},{"@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\/48886","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=48886"}],"version-history":[{"count":9,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/48886\/revisions"}],"predecessor-version":[{"id":49401,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/48886\/revisions\/49401"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/49400"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=48886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=48886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=48886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}