|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Problem with doas and unbound-adblock
I'm trying to get the unbound-adblock script from https://geoghegan.ca/unbound-adblock.html working but the doas command is giving me problems.
I'm following the instructions and here is my /etc/doas.conf Code:
permit nopass _adblock cmd rcctl args reload unbound Code:
epitaxial ~ $ doas -u _adblock sh /usr/local/bin/unbound-adblock.sh doas: Operation not permitted |
|
|||
Put an empty new line at the end of doas.conf
|
|
|||
Do you have the doas permissions to run the script as _adblock?
|
|
|||
Isn't that set by doas.conf? I'm confused
|
|
|||
If that is your entire doas.conf file, you never gave anyone permission to run the script as user _adblock.
Is that your entire doas.conf file? If not, what is the whole thing? |
|
|||
Quote:
Code:
permit nopass epitaxial as _adblock permit nopass _adblock cmd rcctl args reload unbound |
|
|||
So user epitaxial can run the command in your first post.
doas -u _adblock sh /usr/local/bin/unbound-adblock.sh Run it again as epitaxial. What is the output? What is in /var/log/secure? |
|
|||
Adding that first line to my doas.conf fixed the problem.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adblock Plus investigation | victorvas | News | 19 | 21st February 2020 05:44 PM |
Adblock Plus issue in Firefox | victorvas | OpenBSD Packages and Ports | 10 | 11th May 2019 08:31 PM |
Publisher Sues AdBlock Plus For Copyright Infringement | e1-531g | News | 0 | 11th April 2019 11:02 AM |
DOAS(1) rules | jjstorm | OpenBSD General | 8 | 11th April 2016 08:09 PM |
doas package | Peter_APIIT | OpenBSD General | 2 | 1st November 2015 07:45 AM |