Node-red permissions

760 views
Skip to first unread message

Paul Reed

unread,
May 23, 2015, 3:27:30 PM5/23/15
to node...@googlegroups.com
I'm using node-red to automatically back up a number of folders on my Rasp Pi, including my node-red folder every night to Barracuda Copy, which although generally works well, I'm experiencing a few 'permissions' problems with 'copy' as it will not let me share the resulting 'node-red' backup with anyone else, although I can with all of the other folder backups.  
The only difference I can see, is that my Rasp Pi 'node-red' folder has permissions set by default as nobody/pi, whilst all of the other folders are set as root/root.
Is nobody/pi correct, and the recommended ownership?

Paul

Paul Reed

unread,
May 24, 2015, 3:53:07 PM5/24/15
to node...@googlegroups.com
Is everyone's 'node-red' folder/files set with permissions 'nobody/pi', or i it just mine!!

Julian Knight

unread,
May 24, 2015, 5:29:27 PM5/24/15
to node...@googlegroups.com
Nope, pi/pi here. I guess something has gone a bit pear-shaped.

I don't think any folders should be nobody/pi as that wouldn't be too helpful. pi/pi or root/root would generally be about it on the Pi.

Nicholas O'Leary

unread,
May 24, 2015, 6:04:12 PM5/24/15
to node...@googlegroups.com

Paul, how exactly are you running node-red? What script do you use and how did you set it up?
Nick


--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Reed

unread,
May 24, 2015, 6:12:17 PM5/24/15
to node...@googlegroups.com
I followed the Node-red Installation guide, installing the current npm version (moving pre-existing flows & data to .node-red), and started by using pm2 as per your guide.

Paul

Nicholas O'Leary

unread,
May 24, 2015, 6:22:39 PM5/24/15
to node...@googlegroups.com

When you say the 'node-red' folder, do you mean /home/pi/.node-red - with the leading dot?

If you moved existing files into that directory, did you create the directory first manually? Or did you run node-red (which would have created it) then copy the files in? Given you copied existing files, this ownership may date back to a previous install and whatever you did there.

You can use the chown command to change the file ownership if it's a problem for you.

Paul Reed

unread,
May 24, 2015, 6:47:35 PM5/24/15
to node...@googlegroups.com
No, I was meaning the node-red folder located at $ cd /usr/local/lib/node_modules/node-red
(but I get the same issue with the .node-red folder too)
If you can advise what the recommenced permissions/file ownerships are, I'll change them.

Paul 

Dave C-J

unread,
May 25, 2015, 9:11:30 AM5/25/15
to node...@googlegroups.com
Paul

Well as installed they are correct.... 
the /usr/lib/node_modules/node-red  (or /usr/local/llib/node_modules/node-red should by default be "nobody:pi",
and ~/.node-red should be "pi:pi"

of course you may change them as you wish using chown.
Reply all
Reply to author
Forward
0 new messages