File permissions on SD card

I am implementing a data logger on nodered installed on my Cerbo GX. I can make this work fine if the file is stored in /data/home/nodered/.node-red/logfile.txt, however if I try to save to the SD card (so that I can take it out and read the file onto my laptop) then I get an access denied message. I have tried to change the directory permissions using chmod but the system does not accept this.

Does anyone know how to change the file permissions on the SD card on a Cerbo?

Alternatively, can I log in to the Cerbo via PuTTY using nodered as the username? If so, what is the password? Then could I create my own (i.e owned by user nodered) directory for storage on the SD?

Thanks

Hi Simon,

If you have a mac laptop, rsync can be used to copy a file:

rsync root@ipaddress:/filepath/logfile.txt logfile.txt

example:

rsync root@192.168.20.23:/home/root/mydir/templog.txt templog.txt

rsync will ask for the root password, then copy the file.

Thanks
Do you know the equivalent for a windows PC?

https://www.victronenergy.com/live/ccgx:root_access

Instructions are here for putty.