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!

How to give users in cPanel chown for nobody files?

Discussion in 'General Discussion' started by hekri, Aug 31, 2007.

  1. hekri

    hekri Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    147
    Likes Received:
    2
    Trophy Points:
    168
    Hello

    Maybe someone know how to give users in cPanel some script to chown nobody.nobody files to username.username ?

    I know that i can do it from shell (cron) but i want give users script to do thise when they want.

    Someone have any idea how to do thise?

    I know that fantastico do chown but i cand find in fantastico code how from php script do the chown for user files.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    May want to read: http://us2.php.net/chown

    Essentially the script would need to run as root in order to allow the changing of ownership of the files. That sounds risky to say the least.

    This is likely due to the fact chown (the Unix command) itself may only be executed as root according to the chown man page:

    http://nersp.nerdc.ufl.edu/~dicke3/nerspcs/chown.html
     
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