If I enter in the password to su
when prompted, it doesnt work while sudo su
does. Also, when a command is executed using sudo (command)
, does sudo automatically execute it by root by default (since the man page says sudo, sudoedit - execute a command as another user
michaelxu@michaelxu-server:~$ su
Password:
su: Authentication failure
michaelxu@michaelxu-server:~$ sudo su
[sudo] password for michaelxu:
root@michaelxu-server:/home/michaelxu# exit