Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 asked this on "ask Ubuntu" and had much luck yet, so I thought I might try here as well

I have successfully installed and find myself in the middle of configuring dnscrypt-proxy on ubuntu 13.10 x64. However, I am running into some issues with permissions in general.

I have added a user with the following commmand:

sudo adduser --system --quiet --home /run/dnscrypt --shell /bin/false --group --disabled-password --disabled-login dnscrypt

and issued dnscrypt-proxy --daemonize --user=dnscrypt but without success. So i tried just --daemonize and finally just dnscrypt-proxy which resulted in a UDP bind permission error. Ran it as root and the error goes away. dnscrypt-proxy --user=dnscrypt results in the error returning. I'm guessing its failing because of some permission, but don't have a clue where to start or what to change at this point.

also i would like to run this at network startup or after login. which i think i can manage, but if you have a suggestion it would just save me time. I don't understand why I can't run this as --user=dnscrypt but root works fine. (I mean, I understand why root works ;D)

edit: Just to clarify a little more, I'm actually running elementary OS luna 0.2, which is based on ubuntu 13.10 (I believe)

share|improve this question

You need to create an init script that should use start-stop-daemon to drop the privileges.

The app probably requires raw socket access and for such an operation root (or CAP_SOCK) is required. It is not possible as a normal user.

This link should be quite usefull:

share|improve this answer
Couldn't it also be that ports under 1024 can't be used by non-root users? – LawrenceC Jan 24 '14 at 15:55

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.