{"id":1437,"date":"2021-08-28T05:34:37","date_gmt":"2021-08-27T21:34:37","guid":{"rendered":"https:\/\/gnonstop.linkpc.net\/wp\/?p=1437"},"modified":"2022-01-27T16:27:59","modified_gmt":"2022-01-27T08:27:59","slug":"how-do-i-become-superuser-on-ubuntu-linux-using-su-sudo","status":"publish","type":"post","link":"https:\/\/guerilla.ddns.net\/wp\/?p=1437","title":{"rendered":"How do I become superuser on Ubuntu Linux using su\/sudo?"},"content":{"rendered":"<p>To become root user type:<\/p>\n<pre style=\"font-family: monospace;\">\u2460 <strong><span style=\"color: #ff0000;\">sudo -i<\/span><\/strong>\u00a0 \u00a0 (same as <strong><span style=\"color: #ff0000;\">sudo su -<\/span><\/strong>)<\/pre>\n<p>OR<\/p>\n<pre style=\"font-family: monospace;\">\u2461 <strong><span style=\"color: #ff0000;\">sudo -s<\/span><\/strong>\u00a0 \u00a0 (same as <strong><span style=\"color: #ff0000;\">sudo su<\/span><\/strong>)<\/pre>\n<p>The\u00a0<span style=\"color: #ff0000;\">-i<\/span>\u00a0option tells sudo to run the shell specified by the root user\u2019s password database entry as a login shell. If you pass the\u00a0<span style=\"color: #ff0000;\">-s<\/span>\u00a0to the sudo command, it runs the shell specified by the SHELL environment variable if it exists or the shell defined by the invoking user\u2019s password database entry.<\/p>\n<p>To exit from sudo session of root user, type any one of the following\u00a0command:<\/p>\n<pre style=\"font-family: monospace;\"><strong><span style=\"color: #ff0000;\"># logout<\/span><\/strong>\u00a0 \u00a0 (only \u2460 works)<\/pre>\n<p>OR<\/p>\n<pre style=\"font-family: monospace;\"><strong><span style=\"color: #ff0000;\"># exit<\/span><\/strong><\/pre>\n<p>ref: <a href=\"https:\/\/www.cyberciti.biz\/faq\/become-superuser-on-ubuntu-linux\" target=\"_blank\" rel=\"noopener\">How do I become superuser on Ubuntu Linux using su\/sudo?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To become root user type: \u2460 sudo -i\u00a0 \u00a0 (same as sudo su [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[179],"tags":[63,18],"class_list":["post-1437","post","type-post","status-publish","format-standard","hentry","category-infotech","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1437"}],"version-history":[{"count":6,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1437\/revisions"}],"predecessor-version":[{"id":1439,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1437\/revisions\/1439"}],"wp:attachment":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}