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 -1sudo: pam_open_session: System errorsudo: policy plugin failed session initialization
Issue closed because problem was resolved. Issue was due to incorrect installation of homebridge-amazondash. Fixed by using --unsafe-perm when installing homebridge-amazondash.
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