0

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 ?

muru
  • 193,181
  • 53
  • 473
  • 722
sam
  • 1,227
  • 2
  • 14
  • 27

1 Answers1

0

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.

luk3yx
  • 401
  • 1
  • 6
  • 18