by tankenmate · 3y ago · 0 comments
'sudo su -' instead executes the 'su -' command, giving you a root shell, as a superuser with 'sudo'. If you left the 'sudo' out, you'd have to type the root password.
$ sudo -l
[...]
User yrro may run the following commands on fw33748-02:
(ALL : ALL) ALL
(ALL : ALL) !/usr/bin/sudo, !/usr/bin/su, !/bin/su
So $ sudo su -
Sorry, user yrro is not allowed to execute '/usr/bin/su -' as root on fw33748-02.example.qq.You can simplify that to "sudo -i".