Re: Re: [PHP] Execute permission question

2011-10-28 Thread Tim Streater
On 28 Oct 2011 at 16:01, Tedd Sperling wrote: > On Oct 27, 2011, at 7:49 PM, Daniel Brown wrote: > But does having execute permissions set on a script affect the scripts ability > to run shell commands? No, as Dan has said. But if you have a file called wiggy, containing the following: #!

Re: [PHP] Execute permission question

2011-10-28 Thread Tedd Sperling
On Oct 28, 2011, at 11:07 AM, Daniel Brown wrote: > On Fri, Oct 28, 2011 at 11:01, Tedd Sperling wrote: >> >> But does having execute permissions set on a script affect the scripts >> ability to run shell commands? > >Negative. It won't inherit permissions, though one might expect > that

Re: [PHP] Execute permission question

2011-10-28 Thread Daniel Brown
On Fri, Oct 28, 2011 at 11:01, Tedd Sperling wrote: > > But does having execute permissions set on a script affect the scripts > ability to run shell commands? Negative. It won't inherit permissions, though one might expect that to make sense. > For example, if I have a script that contain

Re: [PHP] Execute permission question

2011-10-28 Thread Tedd Sperling
On Oct 27, 2011, at 7:49 PM, Daniel Brown wrote: > On Thu, Oct 27, 2011 at 19:44, Tedd Sperling wrote: >> >> 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

Re: [PHP] Execute permission question

2011-10-28 Thread Tedd Sperling
On Oct 28, 2011, at 7:19 AM, Geoff Shang wrote: > On Thu, 27 Oct 2011, Tedd Sperling wrote: > >> You answered a question I wasn't prepared to ask, which was "How can php >> scripts be executed when their execute permissions aren't set?" > > Because as far as the system is concerned, the thing w

Re: [PHP] Execute permission question

2011-10-28 Thread Geoff Shang
On Thu, 27 Oct 2011, Tedd Sperling wrote: You answered a question I wasn't prepared to ask, which was "How can php scripts be executed when their execute permissions aren't set?" Because as far as the system is concerned, the thing which is being executed is either PHP itself or something in

Re: [PHP] Execute permission question

2011-10-27 Thread Daniel Brown
On Thu, Oct 27, 2011 at 19:44, Tedd Sperling wrote: > > 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. Sure. What

Re: [PHP] Execute permission question

2011-10-27 Thread Tedd Sperling
On Oct 27, 2011, at 6:27 PM, Daniel Brown wrote: > On Thu, Oct 27, 2011 at 18:15, Tedd Sperling 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 ru

Re: [PHP] Execute permission question

2011-10-27 Thread Tedd Sperling
On Oct 27, 2011, at 6:27 PM, Daniel Brown wrote: > On Thu, Oct 27, 2011 at 18:15, Tedd Sperling wrote: >> >> Ash: >> >> You answered a question I wasn't prepared to ask, which was "How can php >> scripts be executed when their execute permissions aren't set?" >> >> That question begged the qu

Re: [PHP] Execute permission question

2011-10-27 Thread Daniel Brown
On Thu, Oct 27, 2011 at 18:15, Tedd Sperling wrote: > > Ash: > > You answered a question I wasn't prepared to ask, which was "How can php > scripts be executed when their execute permissions aren't set?" > > That question begged the question of "What does execute mean?" It means "execute."

Re: [PHP] Execute permission question

2011-10-27 Thread Tedd Sperling
On Oct 27, 2011, at 4:51 PM, Ashley Sheridan wrote: > 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

Re: [PHP] Execute permission question

2011-10-27 Thread Ashley Sheridan
On Thu, 2011-10-27 at 14:41 -0600, Larry Martell wrote: > On Thu, Oct 27, 2011 at 2:26 PM, Tedd Sperling > 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 ful

Re: [PHP] Execute permission question

2011-10-27 Thread Larry Martell
On Thu, Oct 27, 2011 at 2:26 PM, Tedd Sperling 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 scri