Anachron / i3blocks

Additional/custom blocks which fit my needs
GNU General Public License v3.0
583 stars 106 forks source link

firewall block #38

Closed sven1 closed 4 years ago

sven1 commented 7 years ago

did you edited the sudoers file (sudo visudo) to get "access" to ufw? my only working "ugly" solution was to add this line ${USER} ALL=(ALL) NOPASSWD: /bin/ufw status

but i hate it to give the user some root privileges.. :( what did you do to get this work?

Anachron commented 4 years ago

Yes, that is exactly what I had to do.

I'm using this pgrep -f ^ufw > /dev/null nowadays which doesn't need root permissions.