Hi there,
I have a YAML file that contains OAuth consumer key and secret, they're placed at /var/cpanel/xxx. This file is generated by the administrator via WHM and a user shall not have access to it except the admin and the web server's user.
The user (say 'luser') accesses to the plugin via /frontend/x3/xxx/index.phpcp, and I just realized that it will be running under the permission of 'luser' instead of the web server.
Is there any way I can grant access to the web server (I suppose cPanel runs Apache as 'root') and to use that credential to perform something in a plugin?
Thanks.
I have a YAML file that contains OAuth consumer key and secret, they're placed at /var/cpanel/xxx. This file is generated by the administrator via WHM and a user shall not have access to it except the admin and the web server's user.
The user (say 'luser') accesses to the plugin via /frontend/x3/xxx/index.phpcp, and I just realized that it will be running under the permission of 'luser' instead of the web server.
Is there any way I can grant access to the web server (I suppose cPanel runs Apache as 'root') and to use that credential to perform something in a plugin?
Thanks.