in reply to running cgi as user other than nobody
UPDATE: I forgot to mention (memory spurred by tangential remark by jeffa), setting the directory to setgid. Thus if nobody and user are in a group, and the directory is group writable and setgid group all files created within will be in the group and editable by both. I have done this before, it can get a little hairy though. This works best with a RedHat type system, since each user has their own group. All that is required is to add nobody to each of these groups.
Achh, I can't believe I missed suexec! Zaxo++. (Suexec can be a major pain though, most notably the DocumentRoot gets locked in at compile time) I actually used both suexec and the setgid trick together. The reason why I needed the setgid supplement is that I was also using mod_dav. With WebDAV files are created by the webserver *proper*...
PS> umask 002 could not give you a file that is a+w (or even o+w to be more specific).
--
perl -pe "s/\b;([st])/'\1/mg"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: running cgi as user other than nobody
by emilford (Friar) on Apr 01, 2002 at 23:51 UTC | |
by belg4mit (Prior) on Apr 02, 2002 at 00:06 UTC |