• Uncategorized

About node.js : Cannot-run-nodejs-at-ubuntu-with-another-user

Question Detail

I’m running my website with node, at ubuntu. When I run with root user, that works. But when I run with another user, i have the following error:

throw err;

Error: EACCES: permission denied, open ‘/etc/letsencrypt/live/mydomain/privkey.pem'”

I have granted rights on directory ‘/etc/letsencrypt/live’ and ‘/etc/letsencrypt/archive’ with chmod -R 755 params, and chown to thath user. Se how is at that moment:

“drwxr-xr-x 2 myuser myuser 4096 Sep 22 17:19 mydomain.com.br”

I did a copy of that files in myuser home folder. But when i run node index.js, i have another error:

throw er; // Unhandled ‘error’ event

Error: listen EACCES: permission denied″

Have anything else about permission that i have do grant? Because i don’t want to run as root my website.

Thanks a lot

Question Answer

No answer for now.

You may also like...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.