0

I'm able to access the root shell via the following commands:

sudo -i sudo su (after providing the user password) or su (after providing the root password)

What is the difference between them? I notice that a user with root privileges can access the root account!

marked as duplicate by muru, chaskes, fkraiem, Eric Carvalho, Zanna Nov 18 '16 at 19:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

If you can successfully su to root it means that you know the password, which means that you are root. If you can sudo -i then you have privileges -- specifically, your account has been added to the adm group, making it an administrator.

Not the answer you're looking for? Browse other questions tagged or ask your own question.