I am about to set up a VPS with a user that lacks root privileges. I also have a Node.JS server that writes files to the disk. If I run this program/server without root privileges, will it still be able to write to the disk successfully?
1 Answer
It depends on the permissions and owners for the directories you are using it on and the user Node.JS server runs as. Without more information, no definite answer can be given.
-
OK that's what I had presumed, essentially the application will have the same privileges as the user that booted it, and if the application only attempts to write in directories owned by that user it will go through without problem?– AnthonyJul 2, 2015 at 23:17
-
2
-
Cool, thanks guys. Would give you some upvotes but don't have the reputation here on ServerFault yet.– AnthonyJul 3, 2015 at 0:28