Owner / Group permissions for files problem...

Discussion in 'PHP' started by forelmashi, Jan 16, 2008.

  1. #1
    I'm not sure if this is the right forum.. anyway:

    Any files on the server that are created with by a PHP script have an Owner/Group of 99 99. From googling, I think that means that they have no owner and the problem is, I can't modify the files unless it's through a script....

    Can anyone help me?
     
    forelmashi, Jan 16, 2008 IP
  2. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #2
    Make a new script then you can change the owner with chown();
     
    Kaizoku, Jan 16, 2008 IP
  3. forelmashi

    forelmashi Peon

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ty love

    message too short
     
    forelmashi, Jan 17, 2008 IP
  4. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If the owner/group is 99 then the httpd process uid is also 99 which means that chown() is not available.

    However, you can at least chmod the files to give world write access (chmod 0666 for files, 0777 for directories). This will allow local users on the server to modify those files.
     
    SmallPotatoes, Jan 17, 2008 IP