Create File under /etc/virtual/DOMAINS/monitor via DA Plugin

defomaz

Verified User
Joined
Jun 26, 2008
Messages
130
I start learn create DA plugin and combine with exim system_filter.
What i need is create file under /etc/virtual/DOMAINS/monitor without changed default file folder permission
i try use fopen than fail because i understand that folder is not writable for apache

Maybe anyone have solution with this situation?
Thank you.
 
Hello,

DA plugins are executed by default with the permissions of either diradmin or hosting-user.
If you need to write in the directory where these user have no permissions to write you need to run your plugin from name of superuser. In this case you need to get a suid wrapper. You can find some information on the wrapper here or I could do write one for you. If you need my private assistance please feel free to PM me.
 
Is that possible with this configuration
disable_functions = dl,exec,passthru,system,popen,curl_multi_exec,show_source,shell_exec,posix_getpwuid,php_uname,get_current_user,posix_geteuid,ini_restore,escapeshellarg,escapeshellcmd,proc_close,proc_open,posix_getgrgid,posix_kill,get_current_user

if possible, i will PM you for details
Thank you zEitEr
 
Back
Top