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've had a problem with making QuickVPN work with Ubuntu. I've got a feeling that it's because the Windows only application needs to listen on port 500, which it cannot without privileges. As you should never run Wine as root, how do you at least give it some privileges?

All I've found is that you should use "Posix Capabilities", but I haven't been able to figure out how exactly I can do this.

share|improve this question
up vote 2 down vote accepted

You should be able to grant the "bind to privileged ports" capability to Wine with:

sudo setcap 'cap_net_bind_service=+ep' /path/to/wine

Please let us know if it worked.

share|improve this answer
And run sudo apt-get install libcap2-bin to install setcap if you don't already have it – Oli Jan 16 '11 at 19:22
The capability seems to have been set, but the VPN program is still not working. I don't think it will ever work with wine. Thanks though. – LasseValentini Jan 16 '11 at 21:28
You may need to give caps to both /usr/bin/wine and /usr/bin/wineserver, as well as the actual executable you're launching – Scott Ritchie Jan 20 '11 at 9:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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