Newbie here new install of HA, configuration.yaml is read only
Any assistance would be greatly appreciated. Can access the HA config page thru my browser
update>> The following resolved the issue for me
If you are Windows users who is using WinSCP, please note that after running the installer, you will need to modify settings allowing you to “switch users” to edit your configuration files.
First create a new session on WinSCP using Protocol SCP pointing to your Pi IP address and port 22 and then modify the needed setting by click on Advanced… → Environment → SCP/Shell → Shell and selecting sudo su -.
I can connect to HA thru my web browser on port 8123 and I can also connect with winscp to the pi and open the config file but when I try to make any changes it says cannot over write remote file Permission denied.
Error code: 3
Error message from server: Permission denied
Basically, if you are logging on as the user “pi”, then you need to switch to the user “homeassistant” or a user with greater permissions to make the changes. I connect via SSH as “pi”, then :
sudo vi /home/homeassistant/.homeassistant/configuration.yaml
In this case, I am useing vi as my editor. You could also use nano or vim.
I’m not sure if this was wise to do or not, but I assumed the reason I could not edit the configuration.yaml with Textastic (on my iPad) was due to a permission issue.
So seeing as I’m the only (physical) user of my PI, I changed the write permission of that file by sending this command via SSH - making it writeable for all ?
sudo chmod a+w configuration.yaml
I’m new to Linux so not sure if this is a no-no or not?