Unable to Switch to root user

Hi Iam unable to switch to root user using 

su -

Getting below error

su: Authentication failure

can any one help.


Thanks.

  • post-author-pic
    John L
    12-28-2018

    Use SUDO not su -    su - prompts for the root password, which you don't have.  sudo prompts for the users password and checks the sudoers file.

  • post-author-pic
    Anthony J
    12-28-2018

    su:Authentication Failure means the password you are entering for the root user is incorrect. 

  • post-author-pic
    Ermin K
    12-28-2018

    But do try just sudo and use the user password to see if it works.

  • post-author-pic
    Ermin K
    12-29-2018

    Just wanted to check. Was this solved and are  you able to move on?

  • post-author-pic
    Saikiran G
    01-10-2019

    Thanks Ermin 
    I had tried sudo su - and sudo su --login root with these 2 commands i can switch to root, here its not asking any credentials its swittching  directly.

  • post-author-pic
    Anthony J
    01-10-2019

    Correct, the root password is not set on that. You can set it if you want but it is bad practice. It is better practice to use sudo -i

Looking For Team Training?

Learn More