The following happened to me:$ sudo su - supermanSorry, user clarkkent is not allowed to execute '/bin/su - superman' as root in krypton101.However the following worked fine:$ sudo su supermanWhen is it useful to allow a user to do sudo su but not sudo su -? How is this setting set / unset? I read this page but it didn't help.More details:I am not the administratorI don't have access to /etc/sudoersthe distribution is Centos 7
When can a user do `sudo su` but not `sudo su -`?
sudo;su