marcoraddatz / homebridge-docker

Dockerized Homebridge. No plugins pre-defined, hassle-free setup. Read instructions!
Apache License 2.0
127 stars 47 forks source link

Starting homebridge with elevated privileges #33

Closed TerenceTanWT closed 6 years ago

TerenceTanWT commented 6 years ago

I am trying to run the plugin homebridge-amazondash. To use this plugin, homebridge needs to be run with elevated privileges (sudo). Is there any way to autostart homebridge with sudo?

By the way I installed sudo (apt-get install sudo), but when I runsudo homebridge, I get the following error: sudo: unable to send audit message: Unknown error -1 sudo: pam_open_session: System error sudo: policy plugin failed session initialization

TerenceTanWT commented 6 years ago

Issue closed because problem was resolved. Issue was due to incorrect installation of homebridge-amazondash. Fixed by using --unsafe-perm when installing homebridge-amazondash.