I'll second this approach, with a slight nuance, which is to create a 
separate user for each app, so for example if you had an app called "myapp" 
create a user called myapp and put the app's files in /home/myapp.  There 
are a couple advantages to this: first it's really easy to identify the 
relationships between applications and processes (e.g. when running top or 
ps), second you can give extremely fine grained permissions to each app, 
reducing the chance of privilege escalation if the security of one of your 
applications is breached.

On Wednesday, October 15, 2014 2:26:34 PM UTC-7, Jeremy wrote:
>
> We create a specific limited user for execution of our application (call 
> it appuser) and place the code in the home of that user 
> (/home/appuser/<appname>/<version>/...) then create init script to setup 
> and start the app under the same user.  Make sure you setup the user so it 
> doesn't have SSH rights is a good idea.
>
>  - Jeremy
>
> On Wed, Oct 15, 2014 at 12:03 PM, Clarkie <[email protected] 
> <javascript:>> wrote:
>
>> I'm happy with the installation of nodejs itself; my question is around 
>> where to put our actual js files. 
>>
>> Does anyone have any suggested locations and reasons why they use them?
>>
>> We've considered /usr/local and /opt but I'm not a linux or node expert 
>> so I'd love to hear your thoughts.
>>
>> Thanks, Clarkie
>>
>> -- 
>> Job board: http://jobs.nodejs.org/
>> New group rules: 
>> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
>> Old group rules: 
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "nodejs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/nodejs/b0bb6702-2bb0-4711-a868-6f59e572dac4%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/nodejs/b0bb6702-2bb0-4711-a868-6f59e572dac4%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/04495b63-6727-45fa-9225-5bc6605dfc00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to