Page 1 of 1

Need help with setuid/chmod

Posted: Sun Aug 07, 2005 12:41 pm
by nielsene
I have two configuration management scripts I use for testing. The two scripts copy different stock configurations into the "live" configuration file picked up by the application. I need to let my automated test code run these scripts, without giving the webserver write permission into the configuration directory.

The scripts work when run by me.

I thought this was the kind of place to use the setuid bit. The files are owned by me, but in the www group (used by the server). The permissions on the files are -rwsr-xr-- (4754). However I still get a permissions denied error when the script is invoked by the webserver when it tries to copy the file.

The file I'm trying to copy over is
"-rw-r--r-- 1 nielsene wheel ...." (blasted filter....)

What am I doing wrong?

Posted: Sun Aug 07, 2005 3:58 pm
by nielsene
I've given up on the setuid approach, have been tryingg a sudoers approach. No error messages, the script runs to completion, but no file coped....