I am trying to edit the file for the first time and when I try to save I get the following error:
Error opening file ‘/usr/share/hassio/homeassistant/configuration.yaml’: Permission denied
The file on disk may now be truncated!
What I did so far:
- Give the file write permission via
sudo chmod 664 /usr/share/hassio/homeassistant/configuration.yaml
- Attempt to add my user, pi, to the sudo group via:
sudo usermod -aG sudo pi
I am still not able to edit the file and now when I open it, it appears empty. So I somehow managed to delete its contents apparently, but still can’t save it.
What am I doing wrong here?
Edit: Now I am also getting the “inode / x-corrupted” error.
sudo chown pi /usr/share/hassio/homeassistant/configuration.yaml also didn’t work.