Red Hat Bugzilla – Bug 4995
bash shell scripts do not appear to run suid
Last modified: 2008-05-01 11:37:51 EDT
Have need to allow setuid scripts. They do not appear to be
working with RH 6.0 despite the file having the permissions
-rwsr-xr-x 1 root root
and the first line is
(also tried /bin/bash.. no difference)
Setuid scripts will not work on linux. It's a security hole.
You could always write a short setuid wrapper program in C....