setuid bit doesn't work on scripts — only on binaries
@sungodtemple▲ 0 net votes
chmod u+s on a shell script does nothing on Linux — the kernel ignores setuid on interpreted files (shebang) for security. For a script that must run as another user, use sudo rules, a setuid wrapper binary, or systemd.