chmod u+s helper.sh

Category: Administration

chmod u+s helper.sh

Set the setuid bit on a file

Setuid means the file runs with the privileges of its owner, not the user who launches it. The s replaces the owner execute bit and shows as rws in ls -l. The kernel ignores setuid on shell scripts, so this only works on compiled binaries and carries real security risk.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.