Re: Execute permission question
| From: | Tedd Sperling | Date: | Thu, 27 Oct 2011 23:44:27 +0000 |
| Subject: | Re: Execute permission question | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315470@lists.php.net to get a copy of this message | ||
On Oct 27, 2011, at 6:27 PM, Daniel Brown wrote:
> On Thu, Oct 27, 2011 at 18:15, Tedd Sperling <tedd.sperling@gmail.com> wrote:
>> That question begged the question of "What does execute mean?"
>
> It means "execute." Not to be confused with what others are
> mentioning here, which is "read and interpret." If you run something
> through PHP, Perl, Python, or another parser/interpreter, it doesn't
> need to be executable by the user, only readable.
>
> A caveat to this, of course, is that some scripts (such as those
> run via CGI) will usually need to be executable. You may recall, back
> in the 90's, that any Perl scripts you'd upload to your cgi-bin needed
> to be chmod'd to 0755.
>
> --
> </Daniel P. Brown>
One of the things I'm trying to understand is a php script can execute a shell command, right?
Is there a way via permissions to prevent that -- or -- does that even have anything to do with it?
That's where I'm fuzzy.
Cheers,
tedd
_____________________
tedd@sperling.com
http://sperling.com