On my roundabout path from hack to (presumably) hacker, I've pieced together some shell scripts to control my firewall. I suspect they are too ugly for words, suffice to say that they work.
My problem is with gksudo. I want to be prompted for a password to run /usr/local/sbin/openwall; the relevant parts of my sudoers file look like this:
Code: Select all
# Cmnd alias specification
Cmnd_Alias CLOSE = /usr/local/sbin/closewall
Cmnd_Alias OPEN = /usr/local/sbin/openwall
# User privilege specification
root ALL=(ALL) ALL
simen ALL=NOPASSWD: CLOSE
simen ALL= OPEN
Kind regards,
--Simen