2

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.

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

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

0

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.

  • 1
    -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
  • 1
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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