Re: copying files
| From: | Siggy | Date: | Wed, 23 Jan 2002 03:37:40 +0000 |
| Subject: | Re: copying files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81630@lists.php.net to get a copy of this message | ||
If you posted the general idea of what you're doing we might be able to give
better ideas, but perhaps have
copy.php owned by 'copyfiles' id, and then have any files, and directorys
you want copyable/writable to be of that group. you could also set that grou
p "chmod g+s <dir>" as well, for extra security.... this is, ofcourse, in a
virtualhost with safe mode ON. I personally believe ALL webservers should
have safe mode, so that any breaches of FTP or whatever mean youre system
cannot be easily comprimised.
Anyway -- what/why are you copying ... :)
Siggy
"John Deer" <johndeer9@yahoo.com> wrote in message
news:20020122234031.71482.qmail@web14207.mail.yahoo.com...
> Hi all. I'm developing a system in which I need to
> make a direct copy of an existing file (in unix of
> course). We all know how to use the php copy command,
> but I'm looking for a way to copy/create files from
> the web without running permissions like 777 (yikes!)
> on the whole directory. I could always have the
> directory that's being written to be owned by the
> webserver, but I'm not always in control of the
> environment so I need to find another way. Any
> suggestions? Would any other languages be able to do
> it better?
>
> Thanks in advance.
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/