-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relinquishing root permissions too early #118
Comments
Did you use You could try:
As of version 1.8.0, you should not need to manually use |
i got the same problem, and if i redo the registration without sudo, it fail. i need to make success pair process using sudo to execute the ps4-waker at the first time... |
In what way does it fail? Can you copy and paste what happens with any error messages? |
pi@raspberrypi:~ $ sudo npm -g install ps4-waker
Error: bind EACCES 0.0.0.0:987 |
i need to add "sudo" in front of ps4-waker to make it success pairing with the app |
Interesting. Does it say "Relinquishing root privileges" immediately after
the "Use the PS4 Second Screen App" prompt?
…On Thu, May 9, 2019 at 12:31 PM hkccmaster ***@***.***> wrote:
i need to add "sudo" in front of ps4-waker to make it success pairing with
the app
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGHIFVXQLQ5EJJ2OE24EW3PURGWZANCNFSM4HEP6QHQ>
.
|
the above is copy & paste from ssh screen. bottom 3 line show "Relinquished root privileges" |
i also cant find the file .ps4-wake.credentials.json |
Yes I see that, but I'm asking if it waits for you to do anything before
showing "Relinquished root privileges," or if that happens immediately
after the line above it. Under normal operation the app should pause and
wait for you to connect during that step.
…On Thu, May 9, 2019 at 1:35 PM hkccmaster ***@***.***> wrote:
Interesting. Does it say "Relinquishing root privileges" immediately after
the "Use the PS4 Second Screen App" prompt?
… <#m_2427254840439583125_>
On Thu, May 9, 2019 at 12:31 PM hkccmaster *@*.***> wrote: i need to add
"sudo" in front of ps4-waker to make it success pairing with the app — You
are receiving this because you commented. Reply to this email directly,
view it on GitHub <#118 (comment)
<#118 (comment)>>,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGHIFVXQLQ5EJJ2OE24EW3PURGWZANCNFSM4HEP6QHQ
.
the above is copy & paste from ssh screen. bottom 3 line show
"Relinquished root privileges"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGHIFTYWEOQVAU4VC7GLVDPUROEZANCNFSM4HEP6QHQ>
.
|
the whole message show at the same time. it show immediately. |
all other plugin in my homebridge working fine. |
now when i leave the homebridge running at the background (i mean reboot auto load), the ps4-waker wont work. however, if i execute "sudo homebridge -U /etc/homebridge -D" and keep the ssh running, the ps4-waker will work |
See here for the If it's not in any of those places then I don't know. I don't have a raspberry pi so I cannot test it. I also don't use homebridge nor do I know anything about it. The reason it works with sudo is probably because, when run as root, it has access to the credentials file. Again, though, I cannot provide support for your homebridge configuration since I don't use it. All I can do is help with getting ps4-waker to work in the conditions for which it's intended to work. I'll take a look when I get some time later to see if I can figure out why the setup is relinquishing root privileges early like that. |
i understand. thank you very much for your time. and your work. |
@hkccmaster I've just released version 1.8.5 that should fix the issue you were encountering. |
normally the sudo is not right for the configuration, right?
It annoys me because I do not want to leave the sudo without passwords for Homebridge
The text was updated successfully, but these errors were encountered: