Dnsmasq running as nobody which block UCI commands execution in script

Hi,

I am trying to invoke a script with client mac once after dnsmasq assigning the IP to the client.
In that script, am executing set of UCI add/set, but none of them updated in the config file because of the dnsmasq is running as nobody user.

Changing user type for dnsmasq in src/config.h (#define CHUSER "root") is fixing the problem.
Please let me know whether it is fine to change it as root or we have any other solution to fix this problem.

Thanks,
Dinesh