The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

about the file owner = nobody

Discussion in 'General Discussion' started by sinanata, Aug 8, 2006.

  1. sinanata

    sinanata Member

    Joined:
    Jul 4, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    hi there guys.All of my accounts.On my server have the problem below.The problem's about the file owners and the permissions.All the files which uplaoded by a script or web based system has NOBODY as owner(for eg, a component file installed from the administration section of my joomla cms.) and all the new files have owner problem.

    All of my resellers all of my shared hosting packages have this problem please can someone help me?
     
  2. rikgarner

    rikgarner Well-Known Member

    Joined:
    Mar 31, 2006
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    /dev/null
    Are you using SuExec?

    Rich
     
  3. sinanata

    sinanata Member

    Joined:
    Jul 4, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    I've just installed my cpanel is this comes as default? Please explain.
     
  4. rikgarner

    rikgarner Well-Known Member

    Joined:
    Mar 31, 2006
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    /dev/null
    If I remember rightly, by standard, scripts run as the user "nobody", and therefore any files created by the script are chowned to nobody.

    If you implement SuExec, scripts etc. run as the user account on the server.

    If you have a look at page 120 of the WHM manual (download it and print out the PDF - its really useful!) it briefly describes SuExec.

    In WHM, under Service Configuration, you have "enable/disable SuExec". Try enabling SuExec and see if that resolves your problem. Be aware however, that its possible that it will break something else, but we havent had any problems with SuExec ourselves.

    Rich
     
  5. sinanata

    sinanata Member

    Joined:
    Jul 4, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    hi rich,

    it looks enabled on me.is there a problem about it?
     
  6. rikgarner

    rikgarner Well-Known Member

    Joined:
    Mar 31, 2006
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    /dev/null
    Its possible that your build of apache did not contain SuExec support. You may need to rebuild apache (from the Software -> Apache Update menu) to include the SuExec module and the PHP SuExec support.

    Click the boxes, hit "start build" cross your fingers, and when its done, try again :D

    Rich
     
  7. sinanata

    sinanata Member

    Joined:
    Jul 4, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    hi there again rich,

    http://httpd.apache.org/docs/1.3/suexec.html heres some info about it.

    I've made the selections you told me I've checked php support and the module of SuEXEC but it's not working again? still the owners of my files uploaded by my php program appears nobody and heres another problem which'll solved by suexec the owners appears as "username@domainname.com" I think after I set up suexec properly this'll appear as numbers?

    right?

    as the suexec documentation told us I've checked out the standart suexec directory written in that url and I couldnt find anything?

    One more question must I create a new cpanel account for testing it?
     
  8. rikgarner

    rikgarner Well-Known Member

    Joined:
    Mar 31, 2006
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    /dev/null
    Hiya,
    No, you shouldnt need to create a new account.

    If this problem is more complicated than SuExec not working, its getting a bit beyond my help im afraid. Maybe Chirpy will comment and point you in the right direction, else raise a Cpanel support request.

    SuExec wont be doing any harm, and its worth having it installed.

    Rich
     
  9. fwwebs

    fwwebs Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    329
    Likes Received:
    0
    Trophy Points:
    16
    Check your PHP information and see if the PHP API is CGI or Apache. CGI means PHPSuexec is enabled and scripts should be created with the owner being the cPanel account name. Under CGI, it will be owned and created by 'nobody'.

    Code:
    <?
    phpinfo(); 
    ?>
     
  10. sinanata

    sinanata Member

    Joined:
    Jul 4, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
  11. rikgarner

    rikgarner Well-Known Member

    Joined:
    Mar 31, 2006
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    /dev/null
    Did you actually go through the Apache build?

    Rich
     
  12. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    phpsuexec doesn't show up in phpinfo pages... you can have a PHP script create a file on the server and see who the ownership is.
     
  13. sinanata

    sinanata Member

    Joined:
    Jul 4, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    hi I've solved the nobody problem but I want to set the file owners as numbers.how'll I do it? now my owners are look like xxx@xxx.com
     
Loading...

Share This Page