L
L
likejavascript2012-11-07 08:38:23
System administration
likejavascript, 2012-11-07 08:38:23

Creating a user to run a nodejs app?

Installed nodejs on Ubuntu Server 12.04. Now I need to run nodejs as a user who only has access to run the nodejs server and access to the project directory. Tell me how to create such a user and restrict his rights?
The application is stored in the /var/www/app directory

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2012-11-07
@likejavascript

sudo adduser \\
    --system \\
    --shell /bin/bash \\
    --gecos 'user for running node.js projects' \\
    --group \\
    --disabled-password \\
    --home /home/node \\
    node

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question