I want to change network configurations like dhcp, ip address and so on programmatically.
But what I don't want, is to run my application as root. So my question is: What would be a common approach to solve that? Is this even possible?
Is there maybe any group that is allowed to do that without gaining any other rights? Or should I 'chown' the config files to a special group and add the user to that group?
Related to this (If that is off topic, tell me and I will open another question): The target is an embedded device and the application should be the only one that is accessible by the user. Is there any good (best) practice? Should I create a special user for that application. Any hints are appreciated.