SUID permission on Bash script
Jeronimo Calvo
jeronimocalvop at googlemail.com
Fri Aug 28 08:24:38 UTC 2009
Hi folks!
Im trying to set up a reaaallly basic scrip to allow one user to shutdown my
machine without root permisions, seting up SUID as follows:
-rwsrwxr-- 1 root wheel 38 Aug 27 23:12 apagar.sh
$ ./apagar.sh
Permission denied
content of script:
cat apagar.sh
]#!/usr/local/bin/bash
shutdown -p now
As far as i know, using SUID, script must runs with root permissions... so i
shoudnt get "Permission denied", what im doing wrong??
More information about the freebsd-questions
mailing list