ubuntu get root authority

In the terminal type:
sudo passwd root
Enter new UNIX password: (enter your password here)
Retype new UNIX password: (make sure you enter the password)
passwd: password updated successfully

Later, if you want to gain root privileges, just do the following:
su root
Password
: (enter the password you set above here)

If you want to disable the root account again,

Then you can execute sudo passwd -l root

Ctrl+D back root

addressClick to open the link

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326482694&siteId=291194637