sudo passwd -dl root

If you get an “authentication error” message, your root account is likely locked. You will need to unlock the root account.

If you get an “authentication error” message, your root account is likely locked. You will need to unlock the root account.

Type sudo command and press ↵ Enter (e. g. sudo ifconfig). When prompted for the password, enter your user password, not the root password. sudo is the preferred method for distributions like Ubuntu, where it will work even when the root account is locked. This command is limited to users with administrator privileges. Users can be added or removed from /etc/sudoers.

Type sudo command and press ↵ Enter (e. g. sudo ifconfig). When prompted for the password, enter your user password, not the root password. sudo is the preferred method for distributions like Ubuntu, where it will work even when the root account is locked. This command is limited to users with administrator privileges. Users can be added or removed from /etc/sudoers.

Type sudo command and press ↵ Enter (e. g. sudo ifconfig). When prompted for the password, enter your user password, not the root password. sudo is the preferred method for distributions like Ubuntu, where it will work even when the root account is locked. This command is limited to users with administrator privileges. Users can be added or removed from /etc/sudoers.

Using sudo or su instead of logging in as root will help prevent unintended damage while logged in as root. Using these commands gives the user a chance to think about the command before severe damage is done. Some distributions, such as Ubuntu, leave the root account locked until you manually unlock it. Not only does this prevent users from unknowingly doing too much damage using the root account. It also secures the system from potential hackers, as the root account is typically targeted first. With a locked root account, hackers aren’t able to gain access to it. You will need to unlock the root account and allow root login before logging in to the root account.

If “root” is not listed as one of the log in accounts, click Not listed? and type “root” as the username. If you need root access to perform a command, use the method in the previous section.

If “root” is not listed as one of the log in accounts, click Not listed? and type “root” as the username. If you need root access to perform a command, use the method in the previous section.

In many cases, the root password may be “password. " If you don’t know the root password, or have forgotten it, see the next section for instructions on resetting it. In Ubuntu, the root account is locked and cannot be used until it has been unlocked.

The timing on this can be tricky, so you may have to try multiple times.

The timing on this can be tricky, so you may have to try multiple times.

mount -rw -o remount /

Type passwd accountName and press ↵ Enter. If you need to change the root password, type passwd root. Enter the new password twice when prompted.