Re: Execute permission question

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

 



On Thu, 2011-10-27 at 14:41 -0600, Larry Martell wrote:

> On Thu, Oct 27, 2011 at 2:26 PM, Tedd Sperling <tedd.sperling@xxxxxxxxx> wrote:
> > Hi gang:
> >
> > Another question -- in the context of file permissions (rwx) is the execute permission limited to shell commands -- Or -- is there more?
> 
> Not sure I fully understand your question, but to execute anything
> directly - shell script, python script, perl script, binary program -
> you need the x bit set. I say directly because you could do: 'perl
> script' without script being executable (because in that case it's an
> argument to the perl executable).
> 
> 
> HTH,
> -larry
> 


Yes, I just ran a quick test PHP script without any execute permissions
set at all, only rw-rw-r-- and it ran just fine, suggesting it is just
an argument as Larry said.

I don't think Apache needs execute permissions set on PHP files or pages
either, only read rights.

-- 
Thanks,
Ash
http://www.ashleysheridan.co.uk



[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