Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 am new to this, so sorry if its obvious. I am running a Debian server and installing the likes of UWSGI, NGinx etc on there. The configurations keep talking about pointing to "sockets".

In the build options I seem to be able to specify where the sockets for each program go. By default it looks like most of them go in /tmp (not all of them).

Is this a good place for them to go? I'm trying to keep things as organized as possible but just bunging them in /tmp doesn't seem like the best option.

share|improve this question

migrated from serverfault.com Oct 6 '12 at 15:07

This question came from our site for system and network administrators.

up vote 0 down vote accepted

I would do a mkdir /var/run/nginx (or whatever the program name is) and locate them there. You can then restrict access to the sockets if needed by changing ownership of the that directory.

It's probably not terribly needed for security reasons unless you are a bit paranoid or let people you don't know very well log in via ssh.

share|improve this answer
-1 for It's probably not terribly needed for security reasons. This is terrible security advice. – Flimzy Dec 29 '14 at 15:50
Kindly elaborate. – LawrenceC Dec 29 '14 at 16:11
Trusting that everyone who has access to your machine is trust-worthy is complete folly. You should only grant access that is expressly needed.. – Flimzy Dec 29 '14 at 16:25

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.