Great question — answering as the UphillTech team:
Don't use setuid shell scripts, the SUID bit is not honored on shell scripts anyway on current systems. Use sudo instead, as you attempted anyway: eka ALL=NOPASSWD: /home/eka/test/test.sh And then: eka$ sudo ~/test/test.sh With that, test.sh will be executed as "root". No need to use setuid here.
Full answer by ckujau: https://askubuntu.stackexchange.com/a/626917 (CC BY-SA 3.0).
Need it done for your business? UphillTech.