{"id":24701,"date":"2017-12-19T08:31:31","date_gmt":"2017-12-19T14:31:31","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=24701"},"modified":"2022-12-08T05:16:10","modified_gmt":"2022-12-08T11:16:10","slug":"how-to-create-a-sudo-user-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/","title":{"rendered":"Ubuntu Add User to Sudoers"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-28575\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Ubuntu-Add-User-to-Sudoers.jpg\" alt=\"Ubuntu Add User to Sudoers\" width=\"742\" height=\"371\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Ubuntu-Add-User-to-Sudoers.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Ubuntu-Add-User-to-Sudoers-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Ubuntu-Add-User-to-Sudoers-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-28576\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Add-User-to-Sudoers-in-Ubuntu.jpg\" alt=\"Add User to Sudoers in Ubuntu \" width=\"150\" height=\"57\" \/>We&#8217;ll show you, <strong>how to create sudo user on Ubuntu 16.04<\/strong>. Sudo is a Linux-based program that allows privileged users to execute specific commands as the superuser or another system user. Adding users to the\u00a0sudo group on Ubuntu\u00a016.04 is a fairly easy task if you follow the tutorial below.\u00a0Ubuntu Add User to Sudoers in five simple steps. Let&#8217;s get started.<br \/>\n<!--more--><\/p>\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-69d0c0966ecec\" 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-69d0c0966ecec\"  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-create-a-sudo-user-on-ubuntu\/#1-Add-User-on-Ubuntu\" >1. Add User on Ubuntu<\/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-create-a-sudo-user-on-ubuntu\/#2-Set-Up-a-Strong-Password\" >2. Set Up a Strong Password<\/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-create-a-sudo-user-on-ubuntu\/#3-Add-User-to-The-sudo-Group-on-Ubuntu\" >3. Add User to The sudo Group on Ubuntu<\/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-create-a-sudo-user-on-ubuntu\/#4-Switch-to-the-sudo-user\" >4. Switch to the sudo user<\/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-create-a-sudo-user-on-ubuntu\/#5-Verify-the-sudo-user\" >5. Verify the sudo user<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Add-User-on-Ubuntu\"><\/span>1. Add User on Ubuntu<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To be able to create a new system user and allow that user to execute commands as the superuser or another system user, you need to <a href=\"https:\/\/www.rosehosting.com\/blog\/connect-to-your-linux-vps-via-ssh\/\" target=\"_blank\" rel=\"noopener noreferrer\">connect to your Linux server via SSH<\/a> and run the command below. You should replace <strong>newuser<\/strong> with the actual name of the user you want to add to your system.<\/p>\n<pre>adduser newuser<\/pre>\n<p>Running the <code>adduser<\/code> command will create a new user account to the system according to the configuration information defined in the <strong>\/etc\/adduser.conf<\/strong> file. The <code>adduser<\/code> command also allows you to use one or more command line options such as specifying user&#8217;s home directory, user&#8217;s login shell, groups etc. Once you run the command you will see the following output on your screen:<\/p>\n<pre># adduser newuser\r\nAdding user `newuser' ...\r\nAdding new group `newuser' (1001) ...\r\nAdding new user `newuser' (1001) with group `newuser' ...\r\nCreating home directory `\/home\/newuser' ...\r\nCopying files from `\/etc\/skel' ...\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2-Set-Up-a-Strong-Password\"><\/span>2. Set Up a Strong Password<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Next, you will be asked to enter a password for the newly created user:<\/p>\n<pre>Enter new UNIX password:\r\nRetype new UNIX password:\r\npasswd: password updated successfully\r\nChanging the user information for newuser\r\n<\/pre>\n<p>Make sure you are using <a href=\"https:\/\/www.rosehosting.com\/blog\/generate-password-linux-command-line\/\" target=\"_blank\" rel=\"noopener noreferrer\">a strong password<\/a> for your account. Next step is to enter basic information about the user&#8217;s account such as name, phone number etc.<\/p>\n<pre>Enter the new value, or press ENTER for the default\r\n        Full Name []:\r\n        Room Number []:\r\n        Work Phone []:\r\n        Home Phone []:\r\n        Other []:\r\n\r\nIs the information correct? [Y\/n]\r\n<\/pre>\n<p>Once you confirm that the information you entered is correct, the user account will be added and will be ready to use.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"3-Add-User-to-The-sudo-Group-on-Ubuntu\"><\/span>3. Add User to The sudo Group on Ubuntu<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The whole point of this tutorial is to help you learn how to allow a certain system user to execute commands as the superuser or another system user. To achieve this you need to add the user to the <strong>sudo<\/strong> group. The members of this group have <strong>sudo<\/strong> privileges. Replace newuser with the name of your system user in the command below and execute it.<\/p>\n<pre>usermod -aG sudo newuser<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Switch-to-the-sudo-user\"><\/span>4. Switch to the sudo user<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, switch to that user:<\/p>\n<pre>su - newuser<\/pre>\n<p>and run a command that a normal system user is not allowed to, such as the one below:<\/p>\n<pre>apt-get update &amp;&amp; apt-get upgrade<\/pre>\n<p>The command above upgrades all the system software to the latest version and you will get the following output:<\/p>\n<pre>~$ apt-get update &amp;&amp; apt-get upgrade\r\nReading package lists... Done\r\nW: chmod 0700 of directory \/var\/lib\/apt\/lists\/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)\r\nE: Could not open lock file \/var\/lib\/apt\/lists\/lock - open (13: Permission denied)\r\nE: Unable to lock directory \/var\/lib\/apt\/lists\/\r\nW: Problem unlinking the file \/var\/cache\/apt\/pkgcache.bin - RemoveCaches (13: Permission denied)\r\nW: Problem unlinking the file \/var\/cache\/apt\/srcpkgcache.bin - RemoveCaches (13: Permission denied)<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"5-Verify-the-sudo-user\"><\/span>5. Verify the sudo user<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Try the same command now with <code>sudo<\/code><\/p>\n<pre>sudo apt-get update &amp;&amp; sudo apt-get upgrade<\/pre>\n<p>You will be prompted for the password. Enter the password you specified when creating the system user to proceed. If you have done everything correctly, the software index will be updated and all your system software will be upgraded.<\/p>\n<p>Congratulations, now you have sudo user which you can use to manage your Ubuntu VPS.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-28577\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Adding-User-to-Sudoers-in-Ubuntu-16-04.jpg\" alt=\"Adding User to Sudoers in Ubuntu 16.04\" width=\"180\" height=\"69\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Adding-User-to-Sudoers-in-Ubuntu-16-04.jpg 180w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Adding-User-to-Sudoers-in-Ubuntu-16-04-150x58.jpg 150w\" sizes=\"(max-width: 180px) 100vw, 180px\" \/>Of course, you don&#8217;t have to create a sudo user on Ubuntu, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\"> Ubuntu VPS Hosting services<\/a>, in which case you can simply ask our expert Linux admins to create a sudo user on Ubuntu for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p>PS. If you liked this post on how to create a sudo user on Ubuntu 16.04, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ll show you, how to create sudo user on Ubuntu 16.04. Sudo is a Linux-based program that allows privileged users &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Ubuntu Add User to Sudoers\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/#more-24701\" aria-label=\"Read more about Ubuntu Add User to Sudoers\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":28575,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1698],"tags":[1548,1642,59],"class_list":["post-24701","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-sudo","tag-sudo-user","tag-ubuntu","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.2 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Ubuntu Add User to Sudoers | RoseHosting<\/title>\n<meta name=\"description\" content=\"Ubuntu Add User to Sudoers | RoseHosting\" \/>\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-create-a-sudo-user-on-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu Add User to Sudoers\" \/>\n<meta property=\"og:description\" content=\"Ubuntu Add User to Sudoers | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/\" \/>\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=\"2017-12-19T14:31:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-08T11:16:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Ubuntu-Add-User-to-Sudoers.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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=\"3 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-create-a-sudo-user-on-ubuntu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Ubuntu Add User to Sudoers\",\"datePublished\":\"2017-12-19T14:31:31+00:00\",\"dateModified\":\"2022-12-08T11:16:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/\"},\"wordCount\":538,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/Ubuntu-Add-User-to-Sudoers.jpg\",\"keywords\":[\"sudo\",\"sudo user\",\"ubuntu\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/\",\"name\":\"Ubuntu Add User to Sudoers | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/Ubuntu-Add-User-to-Sudoers.jpg\",\"datePublished\":\"2017-12-19T14:31:31+00:00\",\"dateModified\":\"2022-12-08T11:16:10+00:00\",\"description\":\"Ubuntu Add User to Sudoers | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/Ubuntu-Add-User-to-Sudoers.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/Ubuntu-Add-User-to-Sudoers.jpg\",\"width\":742,\"height\":371,\"caption\":\"Ubuntu Add User to Sudoers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-create-a-sudo-user-on-ubuntu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu Add User to Sudoers\"}]},{\"@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":"Ubuntu Add User to Sudoers | RoseHosting","description":"Ubuntu Add User to Sudoers | RoseHosting","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-create-a-sudo-user-on-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"Ubuntu Add User to Sudoers","og_description":"Ubuntu Add User to Sudoers | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2017-12-19T14:31:31+00:00","article_modified_time":"2022-12-08T11:16:10+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Ubuntu-Add-User-to-Sudoers.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Ubuntu Add User to Sudoers","datePublished":"2017-12-19T14:31:31+00:00","dateModified":"2022-12-08T11:16:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/"},"wordCount":538,"commentCount":1,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Ubuntu-Add-User-to-Sudoers.jpg","keywords":["sudo","sudo user","ubuntu"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/","name":"Ubuntu Add User to Sudoers | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Ubuntu-Add-User-to-Sudoers.jpg","datePublished":"2017-12-19T14:31:31+00:00","dateModified":"2022-12-08T11:16:10+00:00","description":"Ubuntu Add User to Sudoers | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Ubuntu-Add-User-to-Sudoers.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/12\/Ubuntu-Add-User-to-Sudoers.jpg","width":742,"height":371,"caption":"Ubuntu Add User to Sudoers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu Add User to Sudoers"}]},{"@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\/24701","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=24701"}],"version-history":[{"count":2,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/24701\/revisions"}],"predecessor-version":[{"id":43806,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/24701\/revisions\/43806"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/28575"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=24701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=24701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=24701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}