Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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
1  
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

 
discard

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.