Re: Execute permission question
| From: | Ashley Sheridan | Date: | Thu, 27 Oct 2011 20:51:39 +0000 |
| Subject: | Re: Execute permission question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315460@lists.php.net to get a copy of this message | ||
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@gmail.com> 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