I'm new to ubuntu .. i tried to use su
command to enter as a root but didn't work but i tried to use sudo -i
, su root
and sudo -s
worked
I need to know why su
didn't work ?
I'm new to ubuntu .. i tried to use su
command to enter as a root but didn't work but i tried to use sudo -i
, su root
and sudo -s
worked
I need to know why su
didn't work ?
By default, for security reasons, Ubuntu disables root login.
If, for some reason, sudo
does not do what you want it to, or you would like to directly login as root on a TTY, open a terminal and execute:
sudo passwd root
This will prompt you for your password, then a new root password. As usual, the password will be hidden, without replacement characters. Please try and use sudo
as much as possible and only use the above as a last resort, as this is not recommended.