kopiro / homebridge-playstation

Playstation integration for Homebridge / HOOBS.
Apache License 2.0
97 stars 9 forks source link

homebridge terminal user password? #17

Closed DifferentComputers closed 2 years ago

DifferentComputers commented 2 years ago

Describe Your Problem:

when running the install command in the homebridge terminal window, a password is required, even though no password is set for the homebridge user.

:/var/lib/homebridge$ homebridge-playstation-login No credentials for PSSystem and unable to request (need root permissions). Attempting to request root permissions now (we will relinquish them as soon as possible)... [sudo] password for homebridge: Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

DifferentComputers commented 2 years ago

OK, I managed to set a homebridge user password. but now:

homebridge@Loki:/var/lib/homebridge$ homebridge-playstation-login No credentials for psSystem and unable to request (need root permissions). Attempting to request root permissions now (we will relinquish them as soon as possible)... [sudo] password for homebridge:
Sorry, user homebridge is not allowed to execute '/usr/local/bin/node /usr/local/bin/homebridge-playstation-login --credentials /home/homebridge/.config/playactor/credentials.json --proxied-user-id 999' as root on Loki.

Can anyone assist?

ijv182 commented 2 years ago

I’m having the same issue as this.

Does playactor need to be installed separately or is it included when this plugin is installed?

shindekokoro commented 2 years ago

You will need to add those directories to homebridge user in /etc/sudoers file

aceilort commented 2 years ago

I typed su [my main user] and continued with homebridge-playstation-login. It worked 🤷‍♂️