Ubuntu – Su command + authentication failure

command linesu

I am having problems with the su command. I know my password and I am typing it correctly but su indicates authentication failure.

So I checked on the internet and then went into recovery mode and changed my username's password to what I was entering before.

Even now entering the same password on su gives me authentication failure.

Please suggest what am I doing wrong??

Best Answer

  • su asks for the root password. Since Ubuntu doesn't set a root password by default, you can't use it to become root.

    Instead, to become root, use sudo -i with your personal password.