FTP into HAAS -- can't write configuration.yaml

There isn’t a password set, so you can’t FTP in to edit it using homeassistant. You have 3 options here (in order of recommendation):

  1. SSH into the Pi using the pi user. Then, run sudo su - homeassistant to switch to the homeassistant user, where you can use nano or vi to edit the file. (Most recommended solution)
  • Or, you can just run sudo nano [path to file] as pi any time you want to edit the file, which will just use a sudo to root to edit the file.
  1. Figure out how to tell your FTP client to use the SCP protocol and force it to run sudo su. (I’ve honestly never done this before)
    Permission to edit/overwrite the configuration.yaml file
  2. Change permission on the file to allow the group homeassistant to edit the file
    Can't Edit Configuration.YAML - Permission

You should definitely do the first one if possible.

2 Likes