{"id":4950,"date":"2014-04-28T00:53:00","date_gmt":"2014-04-27T16:53:00","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=4950"},"modified":"2023-04-28T09:48:19","modified_gmt":"2023-04-28T09:48:19","slug":"how-to-enable-root-login-on-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-enable-root-login-on-ubuntu-14-04\/","title":{"rendered":"How to Enable Root Login on Ubuntu 14.04"},"content":{"rendered":"<p>Ubuntu 14.04 is an old version of the Ubuntu operating system, but it is still in use in some environments. By default, the root account is disabled in Ubuntu for security reasons. However, in some cases, you may need to enable root login to perform administrative tasks.<\/p>\n<p>In this guide, we will show you how to enable root login on Ubuntu 14.04.<\/p>\n<h2>Step 1: Switch to Root User<\/h2>\n<p>The first step is to switch to the root user by running the following command in your terminal:<\/p>\n<pre>sudo su<\/pre>\n<p>This command will prompt you to enter your password. Once you enter the password, you will be logged in as the root user.<\/p>\n<h2>Step 2: Set a Password for the Root User<\/h2>\n<p>Next, you need to set a password for the root user. Run the following command:<\/p>\n<pre>passwd root<\/pre>\n<p>You will be prompted to enter a new password for the root user. Enter the password and confirm it.<\/p>\n<pre>\r\nlogin as: rsuog\r\nrsuog@192.168.0.114's password:\r\nWelcome to Ubuntu 14.04 LTS (GNU\/Linux 3.13.0-24-generic x86_64)\r\n\r\n * Documentation:  https:\/\/help.ubuntu.com\/\r\n\r\n  System information as of Sun Apr 27 23:49:57 MYT 2014\r\n\r\n  System load:  0.15              Processes:           68\r\n  Usage of \/:   3.8% of 31.37GB   Users logged in:     0\r\n  Memory usage: 3%                IP address for eth0: 192.168.0.114\r\n  Swap usage:   0%\r\n\r\n  Graph this data and manage this system at:\r\n    https:\/\/landscape.canonical.com\/\r\n\r\n4 packages can be updated.\r\n1 update is a security update.\r\n\r\nLast login: Sun Apr 27 23:49:57 2014\r\nehowstuff@ubuntu14:~$ sudo passwd root\r\n[sudo] password for rsuog:\r\nEnter new UNIX password:\r\nRetype new UNIX password:\r\npasswd: password updated successfully\r\nrsuog@ubuntu14:~$\r\n<\/pre>\n<h2>Step 3: Edit the SSH Configuration File<\/h2>\n<p>Now, you need to edit the SSH configuration file to enable root login over SSH. Run the following command:<\/p>\n<pre>sudo nano \/etc\/ssh\/sshd_config<\/pre>\n<p>This command will open the sshd_config file in the nano text editor. Find the line that says:<\/p>\n<pre>PermitRootLogin without-password<\/pre>\n<p>Change it to:<\/p>\n<pre>PermitRootLogin yes<\/pre>\n<p>Save the changes and exit the editor by pressing Ctrl + X, then Y, and finally Enter.<\/p>\n<h2>Step 4: Restart the SSH Service<\/h2>\n<p>Finally, you need to restart the SSH service to apply the changes. Run the following command:<\/p>\n<pre>sudo service ssh restart<\/pre>\n<p>Now, you can log out of your current session and log in as the root user using the password you set in step 2.<\/p>\n<h2>Commands Mentioned:<\/h2>\n<ul>\n<li><span class=\"fw-bold\">sudo su<\/span> &#8211; Switch to root user<\/li>\n<li><span class=\"fw-bold\">passwd root<\/span> &#8211; Set a password for the root user<\/li>\n<li><span class=\"fw-bold\">sudo nano \/etc\/ssh\/sshd_config<\/span> &#8211; Edit the SSH configuration file<\/li>\n<li><span class=\"fw-bold\">sudo service ssh restart<\/span> &#8211; Restart the SSH service<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>In this guide, we have shown you how to enable root login on Ubuntu 14.04. By following these steps, you can switch to the root user and perform administrative tasks that require root privileges. However, it is important to remember that enabling root login can be a security risk, and it is recommended to disable it again once you have finished your tasks. You can do this by editing the sshd_config file and changing PermitRootLogin yes back to PermitRootLogin without-password. We hope this guide has been helpful to you. If you have any comments or suggestions for improvements, please feel free to share them below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 14.04 is an old version of the Ubuntu operating system, but it is still in use in some environments. By default, the root account is disabled in Ubuntu for&#8230;<\/p>\n","protected":false},"author":6,"featured_media":5013,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1073],"tags":[1856,1859],"class_list":["post-4950","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-ubuntu","tag-ubuntu-14-04-lts"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=4950"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4950\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/5013"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=4950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=4950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=4950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}