NEWS
Node-Red Adapter: Error: EACCES: permission denied
-
Hello,
I am using a Linux system with IO-Broker and Node-Red.
iobroker V6.10.1
node-red v4.0.3I created a ".json" on my linux system under "/home/bitmage/x.json". I am trying to read the file inside Node-Red and I am always getting the following fault: "Error: EACCES: permission denied, open '/home/bitmage/x.json'".
I did not find any solution in the internet. I opened a post on Node-red forum, but the community said I should ask here, because it seems to be a permission thing of the iobroker.
My target is to read a .json file with the "read file" node and use the information in node-red.
I saw this post here: Node-red-contrib-persist on DietPi : EACCES: permission denied, open '/root/data/persistence.json' - #46 by devifast
but my /mnt folder is empty.
Thank you in advance
-
Put it in /home/iobroker and change the owner of the file to iobroker:iobroker.
-
First of all thank you for your reply. Really cool from you.
When I try to move the file into the folder "/home/iobroker" my linux system says "permission denied".
I then tried the sudo chown command for the file and the the new user and group is now iobroker:iobroker.
I can see it in my terminal that the user has changed correctly.However I still can not move the file into the path: "/home/iobroker".
Do you know what I am missing? -
Ahhh I found out by myself and it is working now!
I used the command " sudo mv" command to move the file
YOU ARE A GIANT! TYVM!
-
@bit-mage sagte in Node-Red Adapter: Error: EACCES: permission denied:
Do you know what I am missing?
Proper rights...
Your user 'bitmage' should be member of group 'iobroker' and therefore able to write into /home/iobroker.
Check it:groups
as user 'bitmage' gives?
-
You dont accept crypto as donation?
We all use crypto, right? -
@thomas-braun Thank you - i added the user now too Everything is working and I can read the file. Awesome