During all my education I've been taught that the
setuid would allow anyone that has the execution privilege on a file to run it as the owner. However it seems that I'm not able to setuid a binary and run it as simple user. Here's what I tried :
root@pc# chmod u+s,o+x /usr/bin/apt root@pc# su - zero zero@pc$ apt update [sudo] password for zero: Sorry, user zero is not allowed to execute '/usr/bin/apt update' as root on pc.
It works like a charm by default on
/usr/bin/passwd but it seems that Linux doesnt allow me to set it on other binaries. What am I doing wrong?