Permissions and Groups for Node.js

I am looking for the best way to set up Node.js applications on Ubuntu. I set up / var / node / to keep various Node applications the same as / var / www / would.

What I am trying to achieve but seems to be failing:

NodeAdmins (group) has read / write access to / var / node /.

NodeUser (user) has read-only access to / var / node /.

NodeUser is the user account under which Node applications run.

This way, FTP users can modify any files in / var / node / as long as Node applications, when they are running NodeUser, have access to all files.

My questions:

1) Is it correct / safe?

2) How to allow multiple groups to have different permissions on a folder? I used chown to set NodeUser as group owner. I don't believe this is the right way.

+3
node.js directory ubuntu permissions


source to share


No one has answered this question yet

Check out similar questions:

2237
How do I pass command line arguments to a Node.js program?
2201
How do you decide when to use Node.js?
1786
Ssh error "permissions too open"
1648
How to exit Node.js
1517
How do I debug Node.js applications?
1500
Writing Files in Node.js
1264
How to get started with Node.js
1101
How to chmod a folder and all its subfolders and files in Linux Ubuntu Terminal?
346
IIS AppPoolIdentity and File System File Permissions
308
IIS7 Permissions Overview - ApplicationPoolIdentity



All Articles
Loading...
X
Show
Funny
Dev
Pics