Allow one php script to run as root
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?
Thanks!
-
Hello, 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. 0
Please sign in to leave a comment.
Comments
1 comment