enable mesh-announce to run batctl commands without being root.
I was thinking about a sudo wrapper and only allowing the batctl command for that user
batctl is called two times:
How bad would it be to put a sudo in front of the batctl call? Or would we need detection if sudo is available, or an config option, ... Whats the best approach for a PR to get accepted? :wink:
I would like to run mesh-announce as a user with less permissions then root.
For this to work, as far as I understand it, I need two things::
batctl
commands without being root. I was thinking about a sudo wrapper and only allowing the batctl command for that userbatctl
is called two times:How bad would it be to put a
sudo
in front of thebatctl
call? Or would we need detection ifsudo
is available, or an config option, ... Whats the best approach for a PR to get accepted? :wink: