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!

Allow one php script to run as root

Discussion in 'General Discussion' started by Vincent Site47, Jun 6, 2015.

  1. Vincent Site47

    Vincent Site47 Registered

    Jun 6, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hi all!

    I have one WHM setup with different users. I would like one of this users / accounts to have write access to all the other accounts. how can I grant root access to this particular user, in fact, to a particular php script.

    This scripts need to move a file to the public_html folder of the other accounts.

    I'm open to other solutions, Was investigating the possibility of using whm php environment which sounds like it is running under root. But don't know if this would remain after a whim update. And don't event know if this is possible at all.

    I could put the file under a temp folder with the destination folder in a temporary text file, and run a cron job under root to look at this folder and move the files accordingly, but this sounds overkill to me.

    Anybody has an idea how to solve this?

  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    This does not seem like a secure solution. Have you considered simply setting up a script under "root" and have files copied over to specific accounts a set times through a cron job?

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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