{"id":1149,"date":"2020-05-20T13:06:20","date_gmt":"2020-05-20T18:06:20","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=1149"},"modified":"2020-05-20T13:06:20","modified_gmt":"2020-05-20T18:06:20","slug":"how-to-add-a-user-to-sudo-group-on-debian-9","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/","title":{"rendered":"How to Add a User to Sudo Group on Debian 9"},"content":{"rendered":"<div id=\"linux-1226617825\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>In this article, we will show you how to add a user to the sudo group in Debian 9.<\/p>\n<p>Every time you install a fresh new operating system, a user named root is being created automatically. This user is extremely powerful and even dangerous because it has a complete access to the server. Typically, the root user is only used for administrative tasks, as there are no restrictions present like they are for any other user.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-1152\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/debian-sudo-permissions-adminstrator-access-tutorial-root-allow.jpg\" alt=\"\" width=\"120\" height=\"149\" \/>Note that Linux does not have an &#8220;undo&#8221; command. In order to reduce the risk of irreversible damage to the system, we can create a user who will not have privileges to execute commands that can affect the server. However, having administrative access may still be appropriate for everyday tasks &#8211; sometimes we need the power to execute some command as an administrative user. This benefit can be utilized using the sudo command. However, to use the sudo command, the user is required to be present in the sudo group. Let&#8217;s get started with the tutorial. This should work in Debian 10 as well as other future versions of Debian, as these commands usually only have small variations over time.<\/p>\n<p><!--more--><\/p>\n<h2>Step 1. Connect to your server via SSH and Update your Server OS packages<\/h2>\n<p><strong>NOTE<\/strong>: You will need access to the root account in order to add users to the sudo group.<\/p>\n<p>The first thing we need to do is access the Debian server via SSH as the root user.<\/p>\n<pre>ssh root@server_ip_address -p port_number<\/pre>\n<p>Do not forget to replace the &#8220;<span style=\"color: #ff0000;\">server_ip_address<\/span>&#8221; and &#8220;<span style=\"color: #ff0000;\">port_number<\/span>&#8221; with your actual server IP address and port number.<\/p>\n<p>It&#8217;s not a mandatory step for this tutorial, however it&#8217;s a good practice to update your server packages frequently. It maximizes security and can introduce new features to your server. Once you have logged in, you can update your Debian 9 packages to the latest version using:<\/p>\n<pre># apt update &amp;&amp; apt upgrade<\/pre>\n<h2>Step 2. Adding a New User<\/h2>\n<p>In this step, we&#8217;ll be adding a new user. When we add new users to the system, these users are by default not privileged with any administrative access. This means that these users will be able to add or edit files only if they are owners of those files.<\/p>\n<p>Since we are currently logged in as a root user, we can add the new user with the following command:<\/p>\n<pre># adduser <span style=\"color: #ff0000;\">testuser<\/span><\/pre>\n<p>Do not forget to replace <span style=\"color: #ff0000;\">testuser<\/span> with your desired username.<\/p>\n<p>When we run this command it will request to enter information about the new user. Please make sure that the password for the new user is a strong password utilizing at least 10 characters including alphanumeric and grammatical symbols.<\/p>\n<p>Never use passwords based upon dictionary words or significant dates.<\/p>\n<pre>Output:\r\n\r\nAdding user `testuser' ...\r\nAdding new group `testuser' (1001) ...\r\nAdding new user `testuser' (1001) with group `testuser' ...\r\nCreating home directory `\/home\/testuser' ...\r\nCopying files from `\/etc\/skel' ...\r\nEnter new UNIX password:\r\nRetype new UNIX password:\r\npasswd: password updated successfully<\/pre>\n<p>After you set the user password, the home directory will be created for that user and will prompt you to set up information for this new user.<\/p>\n<pre>Changing the user information for testuser\r\nEnter the new value, or press ENTER for the default\r\nFull Name []:\r\nRoom Number []:\r\nWork Phone []:\r\nHome Phone []:\r\nOther []:\r\nIs the information correct? [Y\/n]<\/pre>\n<p>Note that you are not required to enter information for the fields you don&#8217;t wish to populate. The only exception is the password.<\/p>\n<p>When you enter the desired information just confirm the information by typing Y.<\/p>\n<h2>Step 3. Accessing the New User<\/h2>\n<p>After we created a new system user account, we can log in with our newly created user through SSH by typing:<\/p>\n<pre>$ ssh testuser@<span style=\"color: #ff0000;\">server_ip_address<\/span> -p <span style=\"color: #ff0000;\">port_number<\/span><\/pre>\n<p>There is also a different way to quickly switch to a different user if we are already logged in to the server. This is possible by using the <code>su<\/code> command. The su command stands for <em>substitute user,<\/em> and it allows us to enter directly into a different user account without logging out of our currently logged in user. We can use it like this:<\/p>\n<pre>$ su - testuser<\/pre>\n<p>When executing this command, the password for the testuser will be requested. If we enter the correct password, we will change the current user to our new testuser. If we\u00a0 want to go back to the previous session, we can do that using the exit command:<\/p>\n<pre>$ exit<\/pre>\n<h2>Step 4. Add the User to the sudo Group<\/h2>\n<p>As we mentioned, our new user testuser is created without administrative privileges by default. For example, if we want to execute a command that requires these privileges, it will list the following output:<\/p>\n<pre>testuser is not in the sudoers file. This incident will be reported.<\/pre>\n<p>If we want our user to have access to these privileges, we need to add it to the sudo group. All users belonging to the sudo group are allowed to use the sudo command for any purpose.<\/p>\n<p>Using the following command executed as root user, we can add our testuser to the sudo group:<\/p>\n<pre># usermod -aG sudo testuser<\/pre>\n<p>Now, when we log in as our testuser, we can run commands that require root privileges using sudo.<\/p>\n<pre>$ sudo command_name<\/pre>\n<p>When we execute the command with sudo, we will be prompted for the password for our testuser (not the root password), and then the command will be executed with elevated access.<\/p>\n<p>The first time we use the sudo command, it will indicate a message:<\/p>\n<pre>We trust you have received the usual lecture from the local System\r\nAdministrator. It usually boils down to these three things:\r\n\r\n#1) Respect the privacy of others.\r\n#2) Think before you type.\r\n#3) With great power comes great responsibility.\r\n\r\n[sudo] password for testuser:<\/pre>\n<p>We can test the sudo access with the whoami command:<\/p>\n<pre>$ sudo whoami<\/pre>\n<p>Because we just added our user testuser to sudo group, our output of the whoami command will be root:<\/p>\n<pre>Output:\r\nroot<\/pre>\n<h2>Step 5. Remove the User from sudo Group and Delete a User<\/h2>\n<p>In our last step, we will also cover how to remove sudo privileges from the user and how to delete a user.<\/p>\n<p>If we no longer need a user to have root privileges, we can remove it from the sudo group with this command:<\/p>\n<pre># deluser testuser sudo<\/pre>\n<p>and we will receive the following output<\/p>\n<pre>Output:\r\n\r\nRemoving user `testuser' from group `sudo' ...\r\nDone.<\/pre>\n<p>This will only take sudo access away from our user testuser, which will not delete the user itself. But if we no longer need that user, we can delete this user by using this syntax:<\/p>\n<pre># deluser --remove-home testuser<\/pre>\n<p>The <code>--remove-home<\/code> option will delete the home directory that belongs to our user testuser.<\/p>\n<pre>Output:\r\n\r\nLooking for files to backup\/remove ...\r\nRemoving files ...\r\nRemoving user `testuser' ...\r\nWarning: group `testuser' has no more members.\r\nDone.<\/pre>\n<h2>Conclusion<\/h2>\n<p>In this article, we show you how to add, access, grant sudo privileges, remove sudo privileges, and delete users on a Debian 9 server. These are basic tasks for managing users. By familiarizing yourself with these processes you will be able to configure your Debian 9 server faster and safer.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-1153\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/help-from-experts-support-configure-access-administrator-privileges-fully-managed-debian.jpg\" alt=\"\" width=\"120\" height=\"149\" \/>Of course, you don\u2019t have to add a user to Sudo group on Debian 9, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian Hosting services<\/a>, in which case you can simply ask our expert Linux admins to add or remove a sudo user on Debian 9, for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><strong>PS<\/strong>. If you liked this post on <strong>how to add a user to Sudo group on Debian 9<\/strong>, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p><div id=\"linux-2130382242\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will show you how to add a user to the sudo group in Debian 9. Every time you install a fresh new operating system, a user named root is being created automatically. This user is extremely powerful and even dangerous because it has a complete access to the server. Typically, the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1151,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[28,151,150,149],"class_list":["post-1149","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-debian","tag-su","tag-sudo","tag-user"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Add a User to Sudo Group on Debian 9 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"In this article, we will show you how to add a user to the sudo group in Debian 9. Every time you install a fresh new operating system, a user named root\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add a User to Sudo Group on Debian 9 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"In this article, we will show you how to add a user to the sudo group in Debian 9. Every time you install a fresh new operating system, a user named root\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-20T18:06:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/how-to-add-a-user-to-sudo-group-on-debian9.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Add a User to Sudo Group on Debian 9\",\"datePublished\":\"2020-05-20T18:06:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/\"},\"wordCount\":1097,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/how-to-add-a-user-to-sudo-group-on-debian9.jpg\",\"keywords\":[\"debian\",\"su\",\"sudo\",\"user\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/\",\"name\":\"How to Add a User to Sudo Group on Debian 9 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/how-to-add-a-user-to-sudo-group-on-debian9.jpg\",\"datePublished\":\"2020-05-20T18:06:20+00:00\",\"author\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"In this article, we will show you how to add a user to the sudo group in Debian 9. Every time you install a fresh new operating system, a user named root\",\"breadcrumb\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#primaryimage\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/how-to-add-a-user-to-sudo-group-on-debian9.jpg\",\"contentUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/how-to-add-a-user-to-sudo-group-on-debian9.jpg\",\"width\":750,\"height\":410},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/linuxhostsupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add a User to Sudo Group on Debian 9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add a User to Sudo Group on Debian 9 | LinuxHostSupport","description":"In this article, we will show you how to add a user to the sudo group in Debian 9. Every time you install a fresh new operating system, a user named root","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:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/","og_locale":"en_US","og_type":"article","og_title":"How to Add a User to Sudo Group on Debian 9 | LinuxHostSupport","og_description":"In this article, we will show you how to add a user to the sudo group in Debian 9. Every time you install a fresh new operating system, a user named root","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2020-05-20T18:06:20+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/how-to-add-a-user-to-sudo-group-on-debian9.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Add a User to Sudo Group on Debian 9","datePublished":"2020-05-20T18:06:20+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/"},"wordCount":1097,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/how-to-add-a-user-to-sudo-group-on-debian9.jpg","keywords":["debian","su","sudo","user"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/","name":"How to Add a User to Sudo Group on Debian 9 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/how-to-add-a-user-to-sudo-group-on-debian9.jpg","datePublished":"2020-05-20T18:06:20+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"In this article, we will show you how to add a user to the sudo group in Debian 9. Every time you install a fresh new operating system, a user named root","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/how-to-add-a-user-to-sudo-group-on-debian9.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/05\/how-to-add-a-user-to-sudo-group-on-debian9.jpg","width":750,"height":410},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-add-a-user-to-sudo-group-on-debian-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Add a User to Sudo Group on Debian 9"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=1149"}],"version-history":[{"count":3,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1149\/revisions"}],"predecessor-version":[{"id":1156,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1149\/revisions\/1156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/1151"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=1149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=1149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=1149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}