99 99 Owner Permission in dedicated server

Discussion in 'Site & Server Administration' started by Atulya, Apr 16, 2009.

  1. #1
    I have an dedicated server, when i create file or folder using php those files are created in 99 99 owner permission. I cannot move (using copy in php) or rename that file.

    Refer the below image

    [​IMG]

    Advance thanks ...
     
    Atulya, Apr 16, 2009 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    This may happen when suPHP is disabled on the server and you are running Apache as nobody. userid 99 and groupid 99 are for nobody user and group. Also you can enable Apache suEXEC.

    Kailash
     
    kailash, Apr 16, 2009 IP
  3. Atulya

    Atulya Guest

    Messages:
    142
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    So, if i enable suEXEC that owner/group will change ?
     
    Atulya, Apr 17, 2009 IP
  4. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    #4
    If you enable suexec files created by php will have the corresponding user group and owner, not 99, so you wont have any problems with ownership in the future.
     
    st1905, Apr 17, 2009 IP
  5. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #5
    Yes, if you enable Apache SuEXEC, any file which you will upload via PHP should get user:user ownership instead of nobody. For exiting files, you will need to change ownership via SSH.

    Kailash
     
    kailash, Apr 17, 2009 IP