Re: PHP shell commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To fix this scenerio, chroot would require different apache processes
running under different users.

On Jan 11, 2008 3:46 PM, Lucas Prado Melo <lucaspm@xxxxxxxxxxx> wrote:

> On Jan 11, 2008 2:16 PM, Daniel Brown <parasane@xxxxxxxxx> wrote:
> >     Make sure you change the permissions on the directory in which
> > uploads are saved to be non-readable by anyone (including yourself, in
> > case the scripts are suexec'd).
> >
> >     For example, if the directory in which you save uploaded files is
> > uploads/ then just do this (on a *nix box):
> >         chmod 300 uploads
> >
> >     That way, files can still be saved to the directory (which
> > requires write and execute privileges), but the files cannot be read
> > or executed via the web, and directory listing is implicitly denied
> > for all protocols (and local access) to anyone except root.
>
> The uploaded scripts must be executed via the web because it's a host...
> Maybe we could prevent scripts from certain folders to see other
> folders... (chroot?)
> Do you know how to do it in apache?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux