Hi,
We have developed a custom plugin to CPANEL written in PHP. It connects to a MySQL database and loads data to display to the user.
The problem is, because the cpanel plugin is running as the customers username, the MySQL username and password must be in a file that is readable by anyone on the server
Is there any way to run part of a plugin as root so that it can open a config file owned by root that is chmod 777 - even if it has to be done through some <cpanel tags?
I've tried creating a custom cpanel module (in /usr/local/cpanel/Cpanel) but those run as the user as well
Thanks!



LinkBack URL
About LinkBacks
Reply With Quote




