{"id":21010,"date":"2023-09-27T07:08:18","date_gmt":"2023-09-27T07:08:18","guid":{"rendered":"https:\/\/linuxways.net\/?p=21010"},"modified":"2023-09-27T07:08:18","modified_gmt":"2023-09-27T07:08:18","slug":"how-can-i-log-in-as-a-root-user-in-linux-ubuntu","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/linux-commands\/how-can-i-log-in-as-a-root-user-in-linux-ubuntu\/","title":{"rendered":"How Can I Log In As a Root User in Linux\/Ubuntu?"},"content":{"rendered":"<p>In Ubuntu\/Linux, a <strong>Root User<\/strong>, also known as a <strong>Super User<\/strong>, has all the root privileges. The Super User has complete access to everything and every command. Normal users in Ubuntu have limited permission and they cannot install software or even write to system dictionaries. The super user has maximum permissions and they can perform security-relevant functions.<\/p>\n<p>This article discusses the steps to become a super user and log in as a super user.<\/p>\n<h2><strong>How Can I Log In As a Root User in Linux\/Ubuntu?<\/strong><\/h2>\n<p>Before logging in or creating a root user, ensure what type of user you are currently by typing the command below in the terminal:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">whoami<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"79\" class=\"wp-image-21011\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-1.png 727w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-1-300x33.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/p>\n<p>If the terminal does not display \u201croot\u201d, it means that you are a normal User. To Log in as a superuser or root user, type the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"re5\">-i<\/span><\/div><\/div>\n<p>Alternatively, you can type:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"re5\">-s<\/span><\/div><\/div>\n<p>The terminal will ask for a password, enter it to proceed as a super user:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"143\" class=\"wp-image-21012\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-2.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-2-300x59.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<p>The prompt \u201c<strong>$<\/strong>\u201d changes to \u201c<strong>#<\/strong>\u201d indicating that you are now a Root or Superuser. To verify, use the command \u201cwhoami\u201d again:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">whoami<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"71\" class=\"wp-image-21013\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-3.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-3-300x29.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<p>Now to Log out from Super User, type the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">logout<\/span><\/div><\/div>\n<p>This will log you out from the superuser to a normal user and you can see the \u201c<strong>#<\/strong>\u201d changes to \u201c<strong>$<\/strong>\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"50\" class=\"wp-image-21014\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-4.png 725w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-4-300x21.png 300w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/p>\n<p>To verify use the \u201cwhoami\u201d command again:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">whoami<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"70\" class=\"wp-image-21015\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-5.png 723w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21010-5-300x29.png 300w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/p>\n<p>This is how you can log in as a Super User and can change between a Normal User and a Super User.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>To log in as a Superuser or Root User in Linux\/Ubuntu, first, open the terminal and then execute the \u201csudo -i\u201d or \u201csudo -s\u201d command. A Super User in Ubuntu has unrestricted access to all commands, files, dictionaries, and resources. The Super User also known as Root User can grant access to other users as well as restrict other users from using the System. This article discussed how you can Log In as a Super User and also explained how you can switch between a Normal User and a Super User.<\/p>","protected":false},"excerpt":{"rendered":"<p>To log in as a Superuser or Root User in Linux\/Ubuntu, first, open the terminal and then execute the \u201csudo -i\u201d or \u201csudo -s\u201d command.<\/p>","protected":false},"author":110,"featured_media":21016,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1049],"tags":[],"class_list":["post-21010","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=21010"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21010\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/21016"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=21010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=21010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=21010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}