12

I just have managed to install Lubuntu 12.04. Now I want to do some things in the terminal like installing and configuring the Apache and a Lamp-system among other things.

I come from Open SUSE world and there, I usually get access to the super-user-mode in the terminal by typing the command su.

But if I do that in Lubuntu, I am asked for the password and when I enter my password that I use to access the system, I get this error message (translated from German):

su: error with the Authentication 

What should I do now?

Jjed
  • 14,064
zero
  • 255

4 Answers4

15

Ubuntu uses sudo instead of an explicit root account. You can log in as root directly with sudo su, if that's more comfortable for you.

See Advantages and Disadvantages of sudo for why Ubuntu does this.

Jjed
  • 14,064
jmetz
  • 1,171
2

If you want to do root operations you can:

  1. Use sudo with your user password, and you can do everything that root user do.
  2. Use sudo su with your user password to obtain root access
  3. Use sudo passwd with that command are changing the root password, then you can easily access root user using su like other distros (and you can continue to use also sudo).
Ivan
  • 121
  • 3
2

Because you don't enable root account by default Ubuntu disable it. Enabling root by these commands:

$ sudo passwd root
[sudo] password for abc:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

and use su- switch to root account

1

Ubuntu uses sudo to elevate the current user's privileges instead of using actual root account. However, if you specifically require a root shell, you can execute sudo su.

starleaf1
  • 352