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.

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:
    149
    Likes Received:
    2
    Trophy Points:
    18
    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,279
    Likes Received:
    8
    Trophy Points:
    38
    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