Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

php - nobody

Discussion in 'General Discussion' started by d4rkl0rd, Jun 6, 2004.

  1. d4rkl0rd

    d4rkl0rd Active Member

    Joined:
    Feb 23, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    India
    Hello,

    when I use PHP script to create a new file [e.g. fopen("file.txt","w")] on my server, the file and group owner is always "onbody". Is this the right way it's suppose to behave?

    Or is it suppose to be "myuser" owner?

    The reason I'm asking is because I can't edit or even delete files created by "onbody" using the cpanel, ftp or shell terminal. Please advise
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    316
    By default, php runs as the web server (user=nobody) and this behavior is consistent with that. If you want the files to be owned by the user, you'll need to recompile to enable phpsuexec. Doing this may raise other issues due to permissions and ownership, but it's the price to pay to switch between the two.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. d4rkl0rd

    d4rkl0rd Active Member

    Joined:
    Feb 23, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    India
    Hi,

    Thank You Very Much. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice