{"id":1095,"date":"2020-10-24T20:21:46","date_gmt":"2020-10-25T01:21:46","guid":{"rendered":"https:\/\/truxgoservers.com\/blog\/?p=1095"},"modified":"2020-10-24T20:21:47","modified_gmt":"2020-10-25T01:21:47","slug":"how-can-we-disable-the-root-user-on-linux","status":"publish","type":"post","link":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/","title":{"rendered":"How can we disable the Root user on Linux"},"content":{"rendered":"\n<p>Root permissions have access to all commands and files with full read, write or execute permissions and can be used to execute any type of task within the operating system such as to create, update or delete accounts of other users, as well as install , update or remove software packages with which the consequences can be drastic, it is necessary to use it to perform complicated tasks on our computer, but then to return to normal mode we must do the following for Disable the Root.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to disable Root in our system<\/h2>\n\n\n\n<p>First things first, we must know that to execute this process we must first change the user with which we have logged into the root user, for this we execute the following command and enter our administrator password.<\/p>\n\n\n\n<p><strong><em>\u25b8<\/em><\/strong> <strong><em>sudo -s<\/em><\/strong><\/p>\n\n\n\n<p>Once we are as root users, we must execute the following command to remove the root password:<\/p>\n\n\n\n<p>\u25b8 <strong><em>passwd<\/em><\/strong> &#8212;<strong><em>lock root<\/em><\/strong><\/p>\n\n\n\n<p>This command will allow us to completely disable access to the root user, to verify this we will try to enter as root user which we can use the following command:<\/p>\n\n\n\n<p>\u25b8 <strong><em>sudo su<\/em><\/strong><\/p>\n\n\n\n<p>if our root user is disabled, we will receive the message <strong><em>root order not found<\/em><\/strong>.<\/p>\n\n\n\n<p>Another of the security options that we can use with the root user is to modify their current password using the command:<\/p>\n\n\n\n<p>\u25b8 <strong><em>passwd -d root<\/em><\/strong><\/p>\n\n\n\n<p>With this fact we can see that our root user will be disabled and if at some point we want to use it again you can see in the previous article which talks about how to activate our Root.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Root permissions have access to all commands and files with full read, write or execute permissions and can be used to execute any type of task within the operating system such as to create, update or delete accounts of other users, as well as install , update or remove software packages with which the consequences [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1096,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1],"tags":[27],"class_list":["post-1095","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-tutorial","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How can we disable the Root user on Linux - Truxgo Server Blog<\/title>\n<meta name=\"description\" content=\"As we saw in the previous article how to activate Root mode in our Linux operating system, now we will see how to disable Root easily.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/\" \/>\n<meta property=\"og:locale\" content=\"es_MX\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How can we disable the Root user on Linux - Truxgo Server Blog\" \/>\n<meta property=\"og:description\" content=\"As we saw in the previous article how to activate Root mode in our Linux operating system, now we will see how to disable Root easily.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Truxgo Server Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-25T01:21:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-25T01:21:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/10\/Root-Disable.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"840\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Truxgo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Truxgo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/\"},\"author\":{\"name\":\"Truxgo\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/person\\\/8b409c26449db6aa09724b45331e333e\"},\"headline\":\"How can we disable the Root user on Linux\",\"datePublished\":\"2020-10-25T01:21:46+00:00\",\"dateModified\":\"2020-10-25T01:21:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/\"},\"wordCount\":275,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/Root-Disable.jpg\",\"keywords\":[\"Linux\"],\"articleSection\":[\"Linux\",\"Tutorial\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/\",\"name\":\"How can we disable the Root user on Linux - Truxgo Server Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/Root-Disable.jpg\",\"datePublished\":\"2020-10-25T01:21:46+00:00\",\"dateModified\":\"2020-10-25T01:21:47+00:00\",\"description\":\"As we saw in the previous article how to activate Root mode in our Linux operating system, now we will see how to disable Root easily.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/Root-Disable.jpg\",\"contentUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/Root-Disable.jpg\",\"width\":840,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/how-can-we-disable-the-root-user-on-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How can we disable the Root user on Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\",\"name\":\"Truxgo Server Blog\",\"description\":\"Cloud Server and Hosting Tutorials.\",\"publisher\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\",\"name\":\"Truxgo Server Blog\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/cropped-truxgo-logo-blanco.png\",\"contentUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/cropped-truxgo-logo-blanco.png\",\"width\":1250,\"height\":278,\"caption\":\"Truxgo Server Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/person\\\/8b409c26449db6aa09724b45331e333e\",\"name\":\"Truxgo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"caption\":\"Truxgo\"},\"sameAs\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\"],\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/author\\\/truxgo\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How can we disable the Root user on Linux - Truxgo Server Blog","description":"As we saw in the previous article how to activate Root mode in our Linux operating system, now we will see how to disable Root easily.","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:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/","og_locale":"es_MX","og_type":"article","og_title":"How can we disable the Root user on Linux - Truxgo Server Blog","og_description":"As we saw in the previous article how to activate Root mode in our Linux operating system, now we will see how to disable Root easily.","og_url":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/","og_site_name":"Truxgo Server Blog","article_published_time":"2020-10-25T01:21:46+00:00","article_modified_time":"2020-10-25T01:21:47+00:00","og_image":[{"width":840,"height":400,"url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/10\/Root-Disable.jpg","type":"image\/jpeg"}],"author":"Truxgo","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Truxgo","Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/#article","isPartOf":{"@id":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/"},"author":{"name":"Truxgo","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/person\/8b409c26449db6aa09724b45331e333e"},"headline":"How can we disable the Root user on Linux","datePublished":"2020-10-25T01:21:46+00:00","dateModified":"2020-10-25T01:21:47+00:00","mainEntityOfPage":{"@id":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/"},"wordCount":275,"commentCount":0,"publisher":{"@id":"https:\/\/truxgoservers.com\/blog\/#organization"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/10\/Root-Disable.jpg","keywords":["Linux"],"articleSection":["Linux","Tutorial"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/","url":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/","name":"How can we disable the Root user on Linux - Truxgo Server Blog","isPartOf":{"@id":"https:\/\/truxgoservers.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/#primaryimage"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/10\/Root-Disable.jpg","datePublished":"2020-10-25T01:21:46+00:00","dateModified":"2020-10-25T01:21:47+00:00","description":"As we saw in the previous article how to activate Root mode in our Linux operating system, now we will see how to disable Root easily.","breadcrumb":{"@id":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/#primaryimage","url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/10\/Root-Disable.jpg","contentUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/10\/Root-Disable.jpg","width":840,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/truxgoservers.com\/blog\/how-can-we-disable-the-root-user-on-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truxgoservers.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How can we disable the Root user on Linux"}]},{"@type":"WebSite","@id":"https:\/\/truxgoservers.com\/blog\/#website","url":"https:\/\/truxgoservers.com\/blog\/","name":"Truxgo Server Blog","description":"Cloud Server and Hosting Tutorials.","publisher":{"@id":"https:\/\/truxgoservers.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truxgoservers.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/truxgoservers.com\/blog\/#organization","name":"Truxgo Server Blog","url":"https:\/\/truxgoservers.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/cropped-truxgo-logo-blanco.png","contentUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/cropped-truxgo-logo-blanco.png","width":1250,"height":278,"caption":"Truxgo Server Blog"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/person\/8b409c26449db6aa09724b45331e333e","name":"Truxgo","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","caption":"Truxgo"},"sameAs":["https:\/\/truxgoservers.com\/blog"],"url":"https:\/\/truxgoservers.com\/blog\/author\/truxgo\/"}]}},"_links":{"self":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/1095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/comments?post=1095"}],"version-history":[{"count":2,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/1095\/revisions"}],"predecessor-version":[{"id":1107,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/1095\/revisions\/1107"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/media\/1096"}],"wp:attachment":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/media?parent=1095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/categories?post=1095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/tags?post=1095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}