On Wed, 10 Jul 2002 10:29:54 +0300 "Vitaly N. Kravchenko" <[EMAIL PROTECTED]> wrote:
> > Hi. > I have small question for you. > > When I turn safe_mode On, The users script can't access files > with uid differ from uid of this script. It's good. > But, when script.php create any (for example .txt) file.txt, > file.txt have owner uid of user defined in httpd.conf (apache), > User from whom apache runs. > > And user can't access this file. > Can I solve this problem by myself, or it's Engine trouble..? Hi, no you can't really solve this by yourself. What you have to do so that people can create files with their own uid is what i had to do for php4U (php for Lycos Members) which is setting the setuid bit to +s and adding in the php code an effective uid change. The drawbacks of this is that you have to use a cgi version of php. It's not THAT bad actually in terms of performance. We use it for roughly several hundreds thousands users (not all active) with only 6 boxes. I'm not saying they're not loaded but they do fine. I don't think there is another way. If i'm wrong that would be good but I don't really see how it could be done otherwise cause i won't launch php as root :) Later -- Chand Je recompile une version cvs unstable d'un client mail pour avoir les accents dans les sujets. Et alors ? (c) Chand, 2002 Le Perl c'est vraiment à chier pour générer des objets javas sérialisés. Et c'est bien dommage. Tuf (c), 2002 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php