Ok so the scenario is this, I am wanting to make the module install the config files in /etc/openvpn as well as add entries to the /etc/crontab but am at a loss as to how to accomplish this task without making the end user have to login to the console and sudo the commands for obvious reasons many users are not comfortable with the console…
One example module is in the sysadmin module where you’re able to change fail2ban config file jail.local, i just looked on my test system, jail.local has root user and group ownership, with -rw-r–r-- permissions yet the module is able to make changes to the file? I have not studied the code of that module thoroughly yet, and in reality i do not need my module to directly edit a root owned file, but I’m thinking if the module installer can install a crontab entry that periodically checks another, apache owned file for changes, then could copy the changes to the /etc/openvpn root owned files then restart the openvpn process… just not wanting to reinvent the wheel if there is (obviously) already a mechanism in place to get this accomplished.
-Andy