Giter Club home page Giter Club logo

Comments (9)

blubber avatar blubber commented on June 14, 2024

Unfortunately using raw sockets requires root privileges. As far as I can tell you have to options, either you run homebridge as root or you give the user that is running homebridge the CAP_NET_RAW (see $ man 7 capabilities.) I don't personally have experience with the CAP_NET_RAW, I run homebridge as root on a dedicated Pi.

from homebridge-wol.

iDevo avatar iDevo commented on June 14, 2024

Aaaah good to know I'll check it! Okay maybe I'd just run homebridge as root, I don't think that this would have any disadvantages. But please correct me if there are things I should keep an eye, when running hombridge as root.
Thanks a lot @blubber !

from homebridge-wol.

blubber avatar blubber commented on June 14, 2024

Well, running it as root implies trust, the root user can do literally everything on the computer. You are downloading and installing software from the internet, it's up to you to decide whether or not you trust the homebridge and plugin developers.

This is not just homebridge specific by the way, it goes or anything you run as root.

from homebridge-wol.

AAShepAA avatar AAShepAA commented on June 14, 2024

I have the same issue with the homebridge-people-plus plugin on a raspberry pi. I got it to run by copying the config.json file to root/.homebridge and running sudo homebridge. But how do I get this to run from the default /home/pi folder the way it should? How can I give user pi the permission it needs? - thanks

from homebridge-wol.

AlexGustafsson avatar AlexGustafsson commented on June 14, 2024

@AAShepAA I think there’s a note about it in the readme about “capabilities”. Please try that solution and come back whether it works or not.

from homebridge-wol.

AAShepAA avatar AAShepAA commented on June 14, 2024

from homebridge-wol.

AlexGustafsson avatar AlexGustafsson commented on June 14, 2024

@AAShepAA I meant in the readme for this package.

from homebridge-wol.

AAShepAA avatar AAShepAA commented on June 14, 2024

from homebridge-wol.

AlexGustafsson avatar AlexGustafsson commented on June 14, 2024

@AAShepAA here you go, the commit that added the note: 6e1ef14

I hope it solves your issue.

from homebridge-wol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.