Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    4

    Question Files created by PHP owned by nobody

    Dear All:

    I'm a bit tired of users contacting me saying they want to change/remove/add files or folders that were created by PHP.

    If I chmod the directories as 777 it's unsafe.
    If I chgrp it as user:nobody and 770 it's unsafe.

    If the user nobody doesn't have write access to the directory, PHP cannot write.
    If nobody -does- have write access, then, the real user cannot make any change in those files.

    Does anybody have this kind of problems?

    What's the solution? This is very annoying.

    Thanks in advance!

  2. #2
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,514

    Default

    Quote Originally Posted by zhongshan View Post
    Dear All:

    I'm a bit tired of users contacting me saying they want to change/remove/add files or folders that were created by PHP.

    If I chmod the directories as 777 it's unsafe.
    If I chgrp it as user:nobody and 770 it's unsafe.

    If the user nobody doesn't have write access to the directory, PHP cannot write.
    If nobody -does- have write access, then, the real user cannot make any change in those files.

    Does anybody have this kind of problems?

    What's the solution? This is very annoying.

    Thanks in advance!

    You will need to switch to suphp to really solve this issue.
    -Nick
    cPanel Inc.

    Need support? Submit a request here. These forums are not an official support channel.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    4

    Question Files created by PHP owned by nobody

    Hi Nick, hi All.

    Thanks for your answer!

    Does cPanel have any How to to guide about this?

    Thanks again!

    Zhong

  4. #4
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,514

    Default

    Quote Originally Posted by zhongshan View Post
    Hi Nick, hi All.

    Thanks for your answer!

    Does cPanel have any How to to guide about this?

    Thanks again!

    Zhong
    http://www.cpanel.net/support/docs/e...customize.html

    You can also open a ticket @ https://tickets.cpanel.net/submit/ if you need help.
    -Nick
    cPanel Inc.

    Need support? Submit a request here. These forums are not an official support channel.

Similar Threads & Tags
Similar threads

  1. Files owned by nobody not counted in quota
    By santrix in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-13-2009, 09:53 AM
  2. Find files owned by 'nobody'
    By compunet2 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-18-2006, 04:23 PM
  3. Files Owned by nobody and Disk Usage!
    By IdleServ in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 09-01-2006, 01:08 PM
  4. Files owned by unpriveliged user
    By fdesign in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-17-2004, 06:09 PM
  5. Finding files owned by a user?
    By jsteel in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 08-24-2003, 06:32 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube