homebridge-am43-blinds icon indicating copy to clipboard operation
homebridge-am43-blinds copied to clipboard

unable to set CAP_SETFCAP effective capability: Operation not permitted

Open nzlkiwi opened this issue 4 years ago • 4 comments

hoobs@hoobs:/var/lib/homebridge $ sudo setcap cap_net_raw+eip $(eval readlink -f $(which node)) unable to set CAP_SETFCAP effective capability: Operation not permitted

Not sure how to get around this!

nzlkiwi avatar Nov 21 '20 12:11 nzlkiwi

This probably happens because the user hoobs isn't allowed to use sudo.

Since I'm assuming you are using the hoobs product, I would contact them about this issue and how to resolve it.

renssies avatar Dec 05 '20 16:12 renssies

I'm experiencing the same.

I'm using Raspian Homebridge on a Pi Model 4. Even trying as root throws the same error. Can anyone help?

pi@homebridge:/var/lib/homebridge $ sudo setcap cap_net_raw+eip $(eval readlink -f $(which node)) unable to set CAP_SETFCAP effective capability: Operation not permitted pi@homebridge:/var/lib/homebridge $ sudo su root@homebridge:/var/lib/homebridge# sudo setcap cap_net_raw+eip $(eval readlink -f $(which node)) unable to set CAP_SETFCAP effective capability: Operation not permitted root@homebridge:/var/lib/homebridge#

(EDIT: New to GitHub. Tagging @renssies in case it's not immediately obvious that this thread has been dug up after nearly 6months 😂)

matteusz88 avatar Mar 07 '21 19:03 matteusz88

@matteusz88 Try this: sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

It comes straight from the noble bluetooth package's readme: https://github.com/abandonware/noble#running-without-rootsudo-linux-specific

renssies avatar Mar 11 '21 21:03 renssies

had the same problem on hombridhe.io but bluetooth has no problem to work so did not stop me

wroblewski6 avatar Mar 25 '21 17:03 wroblewski6