Re: touch
| From: | jeremy brand | Date: | Sat, 06 Jan 2001 01:21:57 +0000 |
| Subject: | Re: touch | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32992@lists.php.net to get a copy of this message | ||
> 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(). If you run your web server as
root, then you could do this, but I don't even think apache allows it,
and anyone did do it, I would call them stupid.
Using scripts and setuid root programs, you could do it, but again,
this is a real nice security risk. :)
:)
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
Get your own Free, Private email at http://www.smackdown.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"<body>" -- Quoted from Yahoo! homepage, http://www.yahoo.com