Well, I had written a patch for suPHP that would allow you to define a "common user" who can own any script. Even if for whatever reason this isn't enough for you, my patch should help you figure out where and what to change. If you happen to improve my patch, please contribute it the same way I do to suPHP.
I enclose the said patch and a brief description follows. Regards, On Sat, Jun 12, 2010 at 1:46 AM, corrideat <[email protected]> wrote: > The final version of my patch follows. The last one I sumbitted didn't > compile because I used 0[commonUsername], which although valid C (get > translated to *(0+commonUsername) ), this notation can't be used in > conjunction with std::string in C++ for operator[] is an overload. I > didn't try it because I had to leave and wanted to get it sent... > > To sum up, this version does the following: > > . Support for common space (-DCOMMON_POOL): Means that you can run > scripts owned by, e.g., user "hosting" as another user. This user is > considered "safe" > > . Support for execution support: Means that in addition to > "execute:!self", you can set e.g. "execute:/usr/bin/mono". This way > you can set interpreters for non-PHP CGIs. > > . Directory can now be owned by the common user. The parent directory > owner check can be disabled as well. > > . Chroot fix > > . Destination of a symlink can be owned by root or by the common user. > > I hope someone finds this useful. I look forward to receiving your feedback! On Thu, Jul 22, 2010 at 9:58 AM, Uwe Baumbach <[email protected]> wrote: > Hi there, > > is it possible to configure suPHP so, that a scripts would be executed under > following circumstances: > - script directory ist owned by user A of group GRP-A > - in the directory some PHP-scripts belongs to user A of GRP-A, other to user > B of the same group GRP-A > - all scripts are writeable/executable by owner and group (GRP-A) (but not by > all users) > ?? > > We want to allow distributed programming and upload and do not want to allow > chown cmd! > We do not want "tricks" (cron or other jobs to change ownerchip of those > script files). > > Any ideas? > > -- > THX in advance! > > Uwe (Baumbach) > [email protected] > ___________________________________________________________ > Neu: WEB.DE De-Mail - Einfach wie E-Mail, sicher wie ein Brief! > Jetzt De-Mail-Adresse reservieren: https://produkte.web.de/go/demail02 > > _______________________________________________ > suPHP mailing list > [email protected] > https://lists.marsching.com/mailman/listinfo/suphp > -- Ricardo I. Vieitez Estudiante secundario
suphp.patch
Description: Binary data
_______________________________________________ suPHP mailing list [email protected] https://lists.marsching.com/mailman/listinfo/suphp
