{"id":6511,"date":"2014-03-31T12:03:56","date_gmt":"2014-03-31T12:03:56","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=6511"},"modified":"2014-03-31T12:03:56","modified_gmt":"2014-03-31T12:03:56","slug":"sudo-su-results-effective-uid-0-sudo-installed-setuid-root","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/","title":{"rendered":"sudo su: results -effective uid is not 0 is sudo installed setuid root"},"content":{"rendered":"<p>This another common problem for the new users for Linux. Anonymous change of permission of root or while experimenting we do run commands which results into some unexpected results.<\/p>\n<p>we can observe this output while doing sudo su in linux mainly in ubuntu.<\/p>\n<p>The solution lies in changing the permisions<\/p>\n<p><strong>Method 1<\/strong>: While booting hold on shift and from the recovery menu drop to the root shell and run the following commands<\/p>\n<p>chown -R root:root \/usr\/bin\/sudo<\/p>\n<p>mount -ro remount,rw \/<\/p>\n<p>mount -ro remount,ro \/<\/p>\n<p>basically we are changing the owner and remounting to fix this error.<\/p>\n<p>If this doesn,t work do opt the next method<\/p>\n<p><strong>Method 2 :<\/strong>pkexec chown root:root \/usr\/bin\/sudo<\/p>\n<p>pkexec chmod 4755 \/usr\/bin\/sudo<\/p>\n<p>and boot normally.<\/p>\n<p>This will get you out of the effective uid error.<\/p>\n<p>\ud83d\ude1b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This another common problem for the new users for Linux. Anonymous change of permission of root or while experimenting we do run commands which results into some unexpected results. we can observe this output while doing sudo su in linux mainly in ubuntu. The solution lies in changing the permisions Method 1: While booting hold <a href=\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[908,907,890,906,266],"class_list":["post-6511","post","type-post","status-publish","format-standard","hentry","category-ubuntu","tag-cant-do-sudo","tag-effective-uid-error","tag-linux","tag-sudo-error","tag-ubuntu-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>sudo su: results -effective uid is not 0 is sudo installed setuid root - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"sudo su: results -effective uid is not 0 is sudo installed setuid root - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"This another common problem for the new users for Linux. Anonymous change of permission of root or while experimenting we do run commands which results into some unexpected results. we can observe this output while doing sudo su in linux mainly in ubuntu. The solution lies in changing the permisions Method 1: While booting hold [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-31T12:03:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.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=\"Rajat Gangwar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rajat Gangwar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/\"},\"author\":{\"name\":\"Rajat Gangwar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/7bd28faef446f5a3725036e2c51d68ac\"},\"headline\":\"sudo su: results -effective uid is not 0 is sudo installed setuid root\",\"datePublished\":\"2014-03-31T12:03:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/\"},\"wordCount\":147,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"can't do sudo\",\"effective uid error\",\"linux\",\"sudo error\",\"ubuntu\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/\",\"url\":\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/\",\"name\":\"sudo su: results -effective uid is not 0 is sudo installed setuid root - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2014-03-31T12:03:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"sudo su: results -effective uid is not 0 is sudo installed setuid root\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/7bd28faef446f5a3725036e2c51d68ac\",\"name\":\"Rajat Gangwar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cd655f20ce4894ae84f7bf9bd334a1c6673455788fd82e5cb8d8dca2e1bc007c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cd655f20ce4894ae84f7bf9bd334a1c6673455788fd82e5cb8d8dca2e1bc007c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Rajat Gangwar\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/rajat\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"sudo su: results -effective uid is not 0 is sudo installed setuid root - Webkul Blog","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:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/","og_locale":"en_US","og_type":"article","og_title":"sudo su: results -effective uid is not 0 is sudo installed setuid root - Webkul Blog","og_description":"This another common problem for the new users for Linux. Anonymous change of permission of root or while experimenting we do run commands which results into some unexpected results. we can observe this output while doing sudo su in linux mainly in ubuntu. The solution lies in changing the permisions Method 1: While booting hold [...]","og_url":"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2014-03-31T12:03:56+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Rajat Gangwar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Rajat Gangwar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/"},"author":{"name":"Rajat Gangwar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/7bd28faef446f5a3725036e2c51d68ac"},"headline":"sudo su: results -effective uid is not 0 is sudo installed setuid root","datePublished":"2014-03-31T12:03:56+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/"},"wordCount":147,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["can't do sudo","effective uid error","linux","sudo error","ubuntu"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/","url":"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/","name":"sudo su: results -effective uid is not 0 is sudo installed setuid root - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2014-03-31T12:03:56+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/sudo-su-results-effective-uid-0-sudo-installed-setuid-root\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"sudo su: results -effective uid is not 0 is sudo installed setuid root"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/7bd28faef446f5a3725036e2c51d68ac","name":"Rajat Gangwar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cd655f20ce4894ae84f7bf9bd334a1c6673455788fd82e5cb8d8dca2e1bc007c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cd655f20ce4894ae84f7bf9bd334a1c6673455788fd82e5cb8d8dca2e1bc007c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Rajat Gangwar"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/rajat\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/6511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=6511"}],"version-history":[{"count":1,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/6511\/revisions"}],"predecessor-version":[{"id":6512,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/6511\/revisions\/6512"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=6511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=6511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=6511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}