folder created, but no access

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • christopher vogt

    folder created, but no access

    Hi there,

    thats an error i try to solve for quite a while already but didn't find a
    solution yet.
    My problem: I'm writing a little cms, that should create a folderstructure ,
    so that you can put files in via ftp.

    My script (simplified):
    mkdir("00000031 ",0777); // creates a folder named with the id of a
    database-record e.g. 00000031
    chmod("00000031 ",0777); // sets the rights again to be sure, because i
    experienced problems with mkdir not doing it sometimes in the past
    chdir("00000031 "); // should change to the folder but leads to:

    Warning: SAFE MODE Restriction in effect. The script whose uid is 611 is not
    allowed to access 00000035 owned by uid 60000 in /[...]/admin/admin.php on
    line 85

    Its clear, the script belongs to me (user 611) but the folder belongs to the
    PHPuser 60000.


    The Trial to solve this using mit (chown("0000003 1",611); ) unfortunately
    leads to:

    Warning: chown failed: Operation not permitted in /[...]/admin/admin.php on
    line 84

    What can i do in order to get access to the folder, for putting more folders
    and files inside?


    Thanks in advance,

    Christopher


  • Guest's Avatar

    #2
    Re: folder created, but no access

    "christophe r vogt" <christopher.vo gt@rwth-aachen.de> wrote in message
    news:bitoh4$6cl $1@nets3.rz.RWT H-Aachen.DE...[color=blue]
    > Hi there,
    >
    > thats an error i try to solve for quite a while already but didn't find a
    > solution yet.
    > My problem: I'm writing a little cms, that should create a[/color]
    folderstructure ,[color=blue]
    > so that you can put files in via ftp.
    >
    > My script (simplified):
    > mkdir("00000031 ",0777); // creates a folder named with the id of a
    > database-record e.g. 00000031
    > chmod("00000031 ",0777); // sets the rights again to be sure, because i
    > experienced problems with mkdir not doing it sometimes in the past
    > chdir("00000031 "); // should change to the folder but leads to:
    >
    > Warning: SAFE MODE Restriction in effect. The script whose uid is 611 is[/color]
    not[color=blue]
    > allowed to access 00000035 owned by uid 60000 in /[...]/admin/admin.php on
    > line 85[/color]
    <snip>

    This seems to be a case (as displayed in the clever error message) of php
    being run in safe mode. Look that up and you'll have your answer and
    possibly a solution if it is within your grasp (ie: you have access to the
    server in question).


    Comment

    Working...