Ask a Question related to PHP Development, Design and Development.
-
Mark #1
Re: Re[2]: [PHP] So in summary this can't be done due to permission problems?
--- Burhan Khalid <phplist@meidomus.com> wrote:Understood.> On Friday, July 11, 2003, 5:07:49 PM, Mark wrote:
>
> [ snip ]
>
> M> That is correct. According to the docs, if the directory is not
> M> executable, you can't even get the permissions on the files in
> it.
> M> I'm confused, though.
>
> M> Let me state at the begining that I'm not a linux guy. Learning,
> but
> M> slowly.
>
> M> -Doesn't PHP run as some user?
>
> PHP runs with the same permissions as Apache.Understood as well.>
> M> -Is the issue giving that user execute permissions in the web
> root?
>
> If Apache cannot create a file in a directory, then PHP can't do it
> either.I guess I have two questions, then.>
> M> -Why the concern about letting that user have execute
> permissions,
> M> and then prevent anyone (execpt those that have valid reasons)
> from
> M> having write/execute permission to the webroot.
>
> I don't think the problem is with execute permissions. It just
> needs
> to be able to write and read from a directory, not necessarily
> execute. Although I'm not too sure about this.
>
> M> Am I missing something basic? Quite possibly...
>
> This isn't the easiest of things...
1-What is the risk of allowing apache to write to the webroot as
opposed to a directory under the webroot? I guess it would prevent
website defacement, but other than that, can't I do anything
malicious in a webroot subdirectory that I can do in the webroot?
2-Is "this is not the easiest of things" about letting the apache
user read/write, but not other users? If so, I must have
misunderstood what I've read about linux security (again, quite
possibly). I thought users could be in a group, and that group given
permissions to a directory/file.
Trying to learn...
Mark
=====
Mark Weinstock
[email]mark_weinstock@yahoo.com[/email]
***************************************
You can't demand something as a "right" unless you are willing to fight to death to defend everyone else's right to the same thing.
***************************************
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
[url]http://sbc.yahoo.com[/url]
Mark Guest
-
permission problems -help!!
Hi, Im trying to set permissions on my text files to 666. I downloaded the extension to do it via dreamweaver, but every time I try and change the... -
ASP.NET permission problems from a network share
Hi there, I have a new win 2003 web server and having troubles setting up .NET. Im getting the following error from my applications: ... -
So in summary this can't be done due to permission problems?
As part of a CMS I wanted to get the user to: 1) Create a new recordset via a form (with a uniqueid). 2) Press submit whereupon php gets the ID of... -
[PHP] So in summary this can't be done due to permission problems?
> -Why the concern about letting that user have execute permissions, The permissions are Read, Write, and Execute. Read and Write are self... -
Permission Problems revisited
Thanks for all the answers. I'm still somewhat in the fog. The installation owner is 'oracle'. User A is a different user. And still I would like...



Reply With Quote

