-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission issues when running as root user #321
Comments
I'll have a look tomorrow, but do you have a good reason to be running as root? |
No but, although not your fault, this is still a breaking change |
OK, yeah, and it doesn't look like npm have decided how they are going to "fix" it yet either, which is not helpful |
Please test 3.0.1 (when it ships) |
Gladly. Hopefully I won't forget. Thanks for giving this attention! |
I've build the docker image(s) myself and tested them with the same command as above. The only difference being the image being used. In this case |
This issue still persists root@raspberrypi:/opt# docker run --restart=always --net=host -it -v /opt/node_red_data:/data --name nodered nodered/node-red:3.0.2 Error: EACCES: permission denied, copyfile '/usr/src/node-red/node_modules/node-red/settings.js' -> '/data/settings.js' I fixed it by adding --user=root:root to the docker call |
@H-K-47 That doesn't run Node-RED as root in the container, it's just running the docker command as root. That is not the same things. Node-RED will still be running as the node-red user. Look at the opening comment for details of how to run as root in the container. |
@hardillb Yeah i added --user=root:root and it worked |
chown -R 1000:1000 /volume1/docker/node_red_data worked for me |
chown -R 1000:1000 /path/to/docker/node_red_data worked for me too! Thanks! |
Hello, can someone please explain it to me? I am very new to this and I am not able to see the palette manager inside node red. So I order to make the menu point visible Ineed to edit the settings.js file of node red and change the 2 values. Everytime I want to access the file my terminal says "permission denied". Could some explain step by step to me what needs to be done? I dont really get what needs to be done exactly here in these posts. I am stuck - so would be cool if someone could help me out :) |
@Bitmage77 Please do not use closed issues to ask questions. If you have questions ask them on the forum or Node-RED Slack, if need be you can reference this issue. |
okay |
NPM seems to have changed the way it runs scripts, see npm/cli#4811, which causes node-red to not be executed with the user that you expect.
What are the steps to reproduce?
What happens?
You can verify this is due to npm by running the script directly through node
which works as expected.
What do you expect to happen?
I expect this to work as before with 2.x.
Please tell us about your environment:
Platform/OS: Debian 11 64bit
The text was updated successfully, but these errors were encountered: