Hello,
In the plugin (whm/cpanel) that we are currently developping we need to save custom parameters related to some cPanel accounts.
We want those informations to be backuped and transfered with the normal backup and transfer function of cPanel and we don't want that users can modify them. Thus we thought about using a file saved in this directory :
But it seems that this file is not transfered when the account is transfered on another server.Code:/var/cpanel/userdata/<username>/my_plugin.conf
Another idea was using the cpanel information file :
But we didn't find anything in the API showing the possibility to use custom configurations for cPanel accounts and we don't know if it's a good idea as this file is maybe overwrite (instead of modified) by some WHM/cPanel specific function.Code:/var/cpanel/users/oneuser
Another possibility was to save those informations in a file directly in the user account but with rights that prevent the user to modify it. But this possibility is not really valid in a unix point of view.
Is there another place where we can save custom account parameters in a easy way ?
Thanks for any tips.
Cheers,
Philippe


LinkBack URL
About LinkBacks
Reply With Quote