how to login as root on ubuntu and updating password

1 min read

Enabling the Root Account in Ubuntu

=============================

For security purposes, the root account is disabled by default in Ubuntu. However, if you need to enable it for administrative tasks, follow these steps:

Step 1: Open Terminal

Open a terminal on your Ubuntu system.

Step 2: Enable Root Account

To enable the root account, run the following commands:

sudo -i
passwd root

Enter a new password when prompted to confirm.

Alternative Method

You can also use su command followed by your root password to gain access to the root account:

su YOUR_ROOT_PASSWORD

Replace YOUR_ROOT_PASSWORD with the password you set in Step 1.

Enable Root User Ubuntu



  • Home
  • About