Currently I am working on an open source server control panel similar to cPanel, Plesk but I am not sure what would be the best approach to make system changes which require root permissions.
I was thinking to create scripts (with root permissions) which validate and execute commands sent by the app modules (which don't have root permissions). The problem with this is how to validate the call properly.
Maybe someone has a better solution. Please let me know your opinion on this.