Re: Please assist - been on this for hours - Permissions on server
| From: | Jason Wong | Date: | Thu, 10 Jul 2003 14:43:23 +0000 |
| Subject: | Re: Please assist - been on this for hours - Permissions on server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154739@lists.php.net to get a copy of this message | ||
On Thursday 10 July 2003 21:04, Steve Jackson wrote:
> > But _why_ do you need to write to the root directory? Why not
> > just write to a directory where you *do* have permission to write to?
>
> I can already do that.
> My problem is that I need to move or copy/delete the file from the place
> I do have permission to write to to the root.
>
> I have generated a PHP page but it is no good where it is, I need to
> automatically move this page and because the owner of the page is HTTPD
> and NoGROUP it doesn't let me. I get permission errors.
>
> I have tried chmod() and chown() the files I've written also to no
> avail.
>
> I'd really appreciate help because I don't know much at all about
> permissions, changing them or how I can automatically do this.
The root of the problem (pun intended) is that you're trying to write to the
root (/) directory which is usually only possible if you're the root user.
Again, the question is _why_ do you need to write to the root directory?
Wouldn't your file function if it wasn't in the root directory?
Without the system admin giving the required permissions what you're trying to
do ought to be impossible (well, you might be able to find an exploit on the
system that you can exploit).
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Horngren's Observation:
Among economists, the real world is often a special case.
*/