Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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.

1 Answer 1

up vote -1 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. –  ultrasawblade 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

 
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.