Hi
I’m very new new HA and have added an integration for our Sigen inverter, batteries etc and now am trying to follow some instructions to create a card. However, what I am stuck on is transferring some icons that I downloaded from github to my HA. I believe the issue is permission related and I have searched here and google and I think my knowledge is very limited which is getting me stuck
I have a Raspberry Pi 5 with bookwork on it which I set up to run Magic Mirror.
I have created a container through Docker on the RPi and set up Portainer.
I did follow some instructions to create permissions for $USER which worked or a bit, and then I had to revert to sudo to do things, like create a folder.
Since then however, I am able to go into the Home Assistant UI and all seems to work fine. I can add some integrations with varying successes. But I am now trying to transfer some files into a folder on HA in the www/sigenergy/ folder. I use Bitvise to access files on the RPi and usually works fine. I can navigate in the www folder but when I try to move a file from local to remote using SSH it says permission denied. I am stuggling to work out how to change or add permissions within the docker container.
I did use:
docker exec -it homeassistant /bin/bash
raspberrypihome:/config# id
and it just came up with user root i.e. uid-0(root) gid=0(root) etc. So it doesn’t look like I have added any other users. I thought I had added admin. This is what I used to access RPi through Bitvise.
I am very new to Linux, my experience is more VBA with very basic javascript.
Do I need to add another user? and how can I use Bitvise to transfer files to folder?
You are using docker, so you created a config directory in the docker compose file or in the docker run command. No need to exec in the docker container, just put the files in the config directory you created
rsync will transfer files from a to b. It will also sync 2 folder changes
ssh allow login to remote server. When you move file from computer A to computer B the file permission may not be correct. You may need to change file owner or file group (chown command).
Thanks for your response. The exec command was after not being able to transfer folders. I really am not too sure what I was doing.
After I posted this request for help, I did try transferring a file to the documents folder on the Pi using Bitvise and that worked fine. Then tried to move it to the folder by coping and pasting using the NewSFTP window. This came up with permission denied again. I then looked at the SFTP tab an ticked the boxes for Set Permissions after Upload for Files - 660 and Directories - 770 and that didn’t help. Is there another way to move them?
Thanks all, your suggestions helped me go in the correct direction. I have managed to add write permission to the group (I thought I had already had done this, but seems not). And now I can use Bitvise SFTP to transfer files from my laptop to the folder on the Pi that seems to be accessed by HA.
Much appreciated