ffnord / mesh-announce

Discussion at #mesh-announce:irc.hackint.org and (separately) at
https://matrix.to/#/!MjLIHcALOcENXZWQlH:irc.hackint.org/$1547640760901FmKaD:matrix.eclabs.de
13 stars 45 forks source link

allow running mesh-announce as non root #62

Closed herbetom closed 3 years ago

herbetom commented 4 years ago

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::

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:

mweinelt commented 4 years ago

Den Pfad zu batctl in eine Variable auslagern, die conditional auf os.geteuid() > 0 sudo hinzufügt.