Re: touch

From: Date: Sat, 06 Jan 2001 02:39:59 +0000
Subject: Re: touch
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-32999@lists.php.net to get a copy of this message
On Fri, 5 Jan 2001 17:21:57 -0800 (PST), jeremy brand <jeremy@nirvani.net> wrote: >> Apache is running as wwwrun/nogroup -- so wwwrun is now the owner of >> the newly created file. But I wanted the owner to be the same as the >> owner of the parent directory. >> >> Any easy way to do that? > >No. Only superuser can do a chown(). I think what I really need, is to have either Apache or PHP set the effective user id to the owner of the directory. Not just for CGIs, I understand suEXEC can do that, but for everything. Then all newly created files would have the right owner, and I would not need any files to be group readable. That would solve another security problem I forsee. Any way to do that? Egan

« previous php.general (#32999) next »