my username is allowed to execute
sudo
command
then why does this bomb
strace sudo
command
with the error:
sudo: must be setuid root
The "must be setuid root" is caused by running sudo in strace.
From man strace:
BUGS Programs that use the setuid bit do not have effective user ID privileges while being traced.
If you want to strace setuid things and have the setuid bit honored, you have to run strace as root with the -u option (this question has already been submitted : Strange strace and setuid behaviour: permission denied under strace, but not running normally)
sudoers
file is setup.
Commented
Mar 30, 2016 at 15:10
sudo strace
will run strace
with root privileges, but will not trace sudo
.