Root Permission Restart

This is where we can discuss what we would like to see added or changed in OpenVPN.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
shmoopie
OpenVpn Newbie
Posts: 1
Joined: Mon Nov 22, 2010 8:26 am

Root Permission Restart

Post by shmoopie » Mon Nov 22, 2010 8:33 am

Hi there,

I've enjoyed OpenVPN for many years now, but there is something that seems to cause persistent problems.

If a user and group are specified then the openvpn daemon will change to this user once it's finished configuring itself. If the daemon then runs into trouble it will attempt to restart itself. Unless it has been very carefully configured it will be unable to access necessary files, add/remove routes or allocate a tun interface.

It seems to me that if the daemon instead configured itself, forked and then had the new process drop root then the parent process could restart with sufficient permissions.

Thanks

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: Root Permission Restart

Post by krzee » Mon Nov 22, 2010 8:38 am

see the persist options in the manual
everything starting with --persist
http://openvpn.net/man-beta.html

Post Reply