Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running openvpn (client) on a home ubuntu server.

I currently create the connection with the command:

sudo openvpn /path/to/config/file

If I don't run it as root, I get an error that the TUN interface can't be created.

I found an old thread on the topic where someone suggested adding your user to netdev, but after doing that I still get the same error.

How urgent is it to solve this problem? Does it really matter if I init the openvpn connection as root or not? Is it a security hazard?


share|improve this question

closed as too localized by gertvdijk, James Dec 31 '12 at 1:57

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Use sudo su then openvpn client.ovpn – Julio Marins May 25 at 20:36

By default OpenVPN runs as root because needs it to create TUN devices.

I dont know if there's any security hazard, but in their wiki, you can find a guide to start OPENVPN with other unprivileged user.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.