{"id":89855,"date":"2021-10-14T08:53:34","date_gmt":"2021-10-14T12:53:34","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=89855"},"modified":"2023-07-31T10:41:52","modified_gmt":"2023-07-31T14:41:52","slug":"create-sudo-user-ubuntu-20","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/","title":{"rendered":"How to Create a Sudo User in Ubuntu  20"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20-1024x538.png\" alt=\"Create a sudo user in Ubuntu 20\" class=\"wp-image-89856\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20-1024x538.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20-300x158.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20-768x403.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20.png 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p> In this article, you will learn how to create a new user with \u201csudo\u201d privileges in Ubuntu 20 as an alternative to using your root user account. This is an ideal procedure for <a href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\">VPS host<\/a>, <a href=\"https:\/\/www.inmotionhosting.com\/dedicated-servers\">dedicated server host<\/a>, or <a href=\"https:\/\/www.inmotionhosting.com\/bare-metal-servers\">bare metal server hosting<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#create-sudo\">Why Create a Sudo User?<\/a><\/li>\n\n\n\n<li><a href=\"#adduser\">Add a Sudo User<\/a><\/li>\n\n\n\n<li><a href=\"#ssh-login\">How to Log In With SSH Key<\/a><\/li>\n<\/ul>\n\n\n<div class=\"jumbotron\">\r\n<p>If you don\u2019t need cPanel, don't pay for it. Only pay for what you need with our scalable <a href=\"https:\/\/www.inmotionhosting.com\/cloud-vps\">Cloud VPS Hosting<\/a>.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>CentOS, Debian, or Ubuntu    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>No Bloatware    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>SSH and Root Access<\/p>\r\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-sudo\">Why Create a Sudo User?<\/h2>\n\n\n\n<p> Your cloud server VPS gives you instant access to the \u201croot\u201d user account, which holds all the power over your system, even the power to delete critical system files.  Likewise, using your <code>root<\/code> user account to make changes to your system can be inconvenient when creating files that must be shared with other users or the world \u2014 like the public files of your website. <\/p>\n\n\n\n<p>There are some similarities and distinctions between the sudo user and the cPanel user, for traditional VPS users. Those of you familiar with <a href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\">managed VPS hosting with cPanel<\/a> will be familiar with how the cPanel account doubles as an SSH user with appropriate access.  However, the cPanel user is not strictly a \u201csudo\u201d user who can invoke root privileges as needed.<\/p>\n\n\n\n<p> For this reason, it is often recommended that you avoid using the root user for everyday tasks.  As an alternative, you can create a personal user account and add \u201csuper user\u201d privilege.  With your own \u201csudo\u201d account, you can run commands as root by appending <code>sudo<\/code> to the command: <\/p>\n\n\n\n<pre id=\"org89f854c\" class=\"wp-block-preformatted example\">sudo &lt;command&gt;\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"adduser\">Add a Sudo User<\/h2>\n\n\n\n<p>\nFirst, log into your server as root:\n<\/p>\n\n\n\n<pre id=\"orga4ae720\" class=\"wp-block-preformatted example\">ssh root@example.com\n<\/pre>\n\n\n\n<p> Run the <code>adduser<\/code> command followed by the name of your new user: <\/p>\n\n\n\n<pre id=\"orgcf1490c\" class=\"wp-block-preformatted example\">adduser &lt;user&gt;\n<\/pre>\n\n\n\n<p> Fill in a secure password. For the rest of the rest of the prompts, like \u201cFull Name,\u201d \u201cRoom Number,\u201d etc. you can put in actual values or press <kbd>Enter<\/kbd> to skip and answer \u201cYes\u201d.  <\/p>\n\n\n\n<p>\nFinally, add the new user to the \u201csudo\u201d group by running this command:\n<\/p>\n\n\n\n<pre id=\"org18f28e0\" class=\"wp-block-preformatted example\">usermod -aG sudo &lt;user&gt;\n<\/pre>\n\n\n\n<p>\nYou have now succeeded in creating a sudo user.  To test the account, you can switch to it:\n<\/p>\n\n\n\n<pre id=\"org677f69f\" class=\"wp-block-preformatted example\">su &lt;user&gt;<\/pre>\n\n\n\n<p>You will see a success message indicating that you have switched to your sudo user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">To run a command as administrator (user \"root\"), use \"sudo \".<br>See \"man sudo_root\" for details.\"<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ssh-login\">How to Log In With SSH Key<\/h2>\n\n\n\n<p>\nAs you recall when first logging into your server as root, you had to provide a public key in the Account Management Panel, which will be used to authenticate your login, since password authentication is disabled by default.\n<\/p>\n\n\n\n<p>\nNow that you have a sudo user, you can add your public key to new user account and actually disallow root login for added security.\n<\/p>\n\n\n\n<p class=\"alert alert-info\">Remember, even if you disallow root login, you can always assume the root user using the <code>su<\/code> command above.<\/p>\n\n\n\n<p>\nWhil still logged in as the sudo user, edit the SSH configuration file:\n<\/p>\n\n\n\n<pre id=\"orge2049ab\" class=\"wp-block-preformatted example\">sudo nano \/etc\/ssh\/sshd_config\n<\/pre>\n\n\n\n<p>\nAdd <i>sudo<\/i> to the line that begins with <i>AllowGroups<\/i>:\n<\/p>\n\n\n\n<p>\nBefore:\n<\/p>\n\n\n\n<pre id=\"org07a5bdc\" class=\"wp-block-preformatted example\">AllowGroups wheel root\n<\/pre>\n\n\n\n<p>\nAfter:\n<\/p>\n\n\n\n<pre id=\"org7a1521e\" class=\"wp-block-preformatted example\">AllowGroups wheel root <span class=\"has-inline-color has-vivid-green-cyan-color\">sudo<\/span>\n<\/pre>\n\n\n\n<p>\nUpdate the line that begins with PermitRootLogin (if you want to disallow root login):\n<\/p>\n\n\n\n<pre id=\"orgd5330c6\" class=\"wp-block-preformatted example\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">- PermitRootLogin without-password<\/mark>\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">+ PermitRootLogin no<\/mark>\n<\/pre>\n\n\n\n<p>\nChange directory to home:\n<\/p>\n\n\n\n<pre id=\"org6514e47\" class=\"wp-block-preformatted example\">cd\n<\/pre>\n\n\n\n<p>\nMake an <code>.ssh<\/code> directory:\n<\/p>\n\n\n\n<pre id=\"orgde77558\" class=\"wp-block-preformatted example\">mkdir .ssh\n<\/pre>\n\n\n\n<p>\nChange into the <code>.ssh<\/code> directory:\n<\/p>\n\n\n\n<pre id=\"orgbd484a3\" class=\"wp-block-preformatted example\">cd .ssh\n<\/pre>\n\n\n\n<p>\nCreate an <i>authorized_keys<\/i> file:\n<\/p>\n\n\n\n<pre id=\"orgc73305a\" class=\"wp-block-preformatted example\">nano authorized_keys\n<\/pre>\n\n\n\n<p>\nPaste your public key in the <i>authorized_keys<\/i> file.\n<\/p>\n\n\n\n<p>\nChange permissions on the <i>authorized_keys<\/i> file:\n<\/p>\n\n\n\n<pre id=\"org9538db4\" class=\"wp-block-preformatted example\">chmod 600 authorized_keys\n<\/pre>\n\n\n\n<p>\nChange into the home directory again with <code>cd<\/code> and change permissions on the <code>.ssh<\/code> directory:\n<\/p>\n\n\n\n<pre id=\"org365b46f\" class=\"wp-block-preformatted example\">chmod 700 .ssh\n<\/pre>\n\n\n\n<p>\nFinally, make sure to restart the SSH service:\n<\/p>\n\n\n\n<pre id=\"org66faf90\" class=\"wp-block-preformatted example\">sudo service ssh restart\n<\/pre>\n\n\n\n<p>\nWell done!  You should now be able to log into your server using the new sudo user.  To test this out, open a new terminal session and give the login a try:\n<\/p>\n\n\n\n<pre id=\"org91c3001\" class=\"wp-block-preformatted example\">ssh &lt;user&gt;@example.com\n<\/pre>\n\n\n\n<p>\nIf you are logged into your system without a problem then you have completed this tutorial perfectly.\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn how to create a new user with &#8220;sudo&#8221; privileges in Ubuntu 20 as an alternative to using your root user account. This is an ideal procedure for VPS host, dedicated server host, or bare metal server hosting. Why Create a Sudo User? Your cloud server VPS gives you instant<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/\"> Read More ><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4308],"tags":[],"class_list":["post-89855","post","type-post","status-publish","format-standard","hentry","category-linux"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create a Sudo User in Ubuntu 20<\/title>\n<meta name=\"description\" content=\"Creating a sudo user in Ubuntu 20 greatly increases your server security and provides you with a custom user for maintenance 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.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a Sudo User in Ubuntu 20\" \/>\n<meta property=\"og:description\" content=\"Creating a sudo user in Ubuntu 20 greatly increases your server security and provides you with a custom user for maintenance tasks.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-14T12:53:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-31T14:41:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Christopher Maiorana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Maiorana\" \/>\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.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/\"},\"author\":{\"name\":\"Christopher Maiorana\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\"},\"headline\":\"How to Create a Sudo User in Ubuntu 20\",\"datePublished\":\"2021-10-14T12:53:34+00:00\",\"dateModified\":\"2023-07-31T14:41:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/\"},\"wordCount\":577,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20-1024x538.png\",\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/\",\"name\":\"How to Create a Sudo User in Ubuntu 20\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20-1024x538.png\",\"datePublished\":\"2021-10-14T12:53:34+00:00\",\"dateModified\":\"2023-07-31T14:41:52+00:00\",\"description\":\"Creating a sudo user in Ubuntu 20 greatly increases your server security and provides you with a custom user for maintenance tasks.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20.png\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create a Sudo User in Ubuntu 20\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\",\"name\":\"Christopher Maiorana\",\"description\":\"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create a Sudo User in Ubuntu 20","description":"Creating a sudo user in Ubuntu 20 greatly increases your server security and provides you with a custom user for maintenance 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.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/","og_locale":"en_US","og_type":"article","og_title":"How to Create a Sudo User in Ubuntu 20","og_description":"Creating a sudo user in Ubuntu 20 greatly increases your server security and provides you with a custom user for maintenance tasks.","og_url":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2021-10-14T12:53:34+00:00","article_modified_time":"2023-07-31T14:41:52+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20.png","type":"image\/png"}],"author":"Christopher Maiorana","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Christopher Maiorana","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/"},"author":{"name":"Christopher Maiorana","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f"},"headline":"How to Create a Sudo User in Ubuntu 20","datePublished":"2021-10-14T12:53:34+00:00","dateModified":"2023-07-31T14:41:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/"},"wordCount":577,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20-1024x538.png","articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/","url":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/","name":"How to Create a Sudo User in Ubuntu 20","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20-1024x538.png","datePublished":"2021-10-14T12:53:34+00:00","dateModified":"2023-07-31T14:41:52+00:00","description":"Creating a sudo user in Ubuntu 20 greatly increases your server security and provides you with a custom user for maintenance tasks.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/10\/How-to-Create-a-Sudo-User-in-Ubuntu-20.png","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/create-sudo-user-ubuntu-20\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Create a Sudo User in Ubuntu 20"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f","name":"Christopher Maiorana","description":"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.","sameAs":["https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4308,"name":"Linux","slug":"linux","link":"https:\/\/www.inmotionhosting.com\/support\/server\/linux\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/89855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=89855"}],"version-history":[{"count":11,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/89855\/revisions"}],"predecessor-version":[{"id":105887,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/89855\/revisions\/105887"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=89855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=89855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=89855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}