I have user director that needs to run a program as root. Before I try using sudo, I thought I would try to use the set-ID approach first.
I've modified my script with chmod ug+s pcmserve19.sh so it looks like:
-rwsr-sr-x 1 root system 199 Feb 21 14:23 pcmserve19.sh
The script looks like:
LIBPATH=/usr/pcm190
PCM_DATA=/usr/pcm190/
export LIBPATH
export PCM_DATA
# Start pcmserve version 19 in background
cd /usr/pcm190/
./pcmserve19 -b -z -l
When I try to run it as user director, I says it can't find the necessary libraries...as if the /usr/pcm190 exports did not "take"?
When user director trys to set those vars, are they not being "seen" by the pcmserve19 program?
I've modified my script with chmod ug+s pcmserve19.sh so it looks like:
-rwsr-sr-x 1 root system 199 Feb 21 14:23 pcmserve19.sh
The script looks like:
LIBPATH=/usr/pcm190
PCM_DATA=/usr/pcm190/
export LIBPATH
export PCM_DATA
# Start pcmserve version 19 in background
cd /usr/pcm190/
./pcmserve19 -b -z -l
When I try to run it as user director, I says it can't find the necessary libraries...as if the /usr/pcm190 exports did not "take"?
When user director trys to set those vars, are they not being "seen" by the pcmserve19 program?