Page 1 of 1

Unprivileged User resolvconf problem

Posted: Tue Jun 19, 2012 3:27 am
by ging
I am having trouble using the resolvconf script to manage resolv.conf

The config file i was given to access a vpn has the following lines to allow it to run as unpriveleged user

user nobody
group nogroup

script-security 2

I am running this on debian 6 with resolvconf installed

I have found that when i connect to the vpn the script works to add the nameservers which have been pushed, however when i disconnect the vpn it fails to run the script to remove these setting

I have found that running without the lines, user nobody, group nogroup everything work fine so it seems it is unable to run this script properly not as root, but no errors are ever thrown out to confirm this

is there a way i can make this work still keeping the the Unpriviledged user lines in the config?

Re: Unprivileged User resolvconf problem

Posted: Tue Jun 19, 2012 12:18 pm
by janjust
you'll need the 'down-root' plugin for that. Read up on e.g. http://wiki.maemo.org/OpenVPN for an example (it's not for Debian but the principle is the same)