Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Praktische Anwendungen (Showcase)
  4. Radar2 läßt sich nicht mit root rechten ausführen

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    793

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    6.2k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

Radar2 läßt sich nicht mit root rechten ausführen

Scheduled Pinned Locked Moved Praktische Anwendungen (Showcase)
31 Posts 4 Posters 3.5k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    necromonger
    wrote on last edited by
    #17

    Das funktioniert reibungslos. Bei /etc/sudoers ist folgende Zeile als Kommentar markiert:

    #includedir /etc/sudoers.d
    

    Die Zeile fügt doch alle Dateiinhalt aus /etc/sudoers.d der Datei hinzu. Also auch die Konfig von IOBroker.

    Thomas BraunT 1 Reply Last reply
    0
    • N necromonger

      Das funktioniert reibungslos. Bei /etc/sudoers ist folgende Zeile als Kommentar markiert:

      #includedir /etc/sudoers.d
      

      Die Zeile fügt doch alle Dateiinhalt aus /etc/sudoers.d der Datei hinzu. Also auch die Konfig von IOBroker.

      Thomas BraunT Online
      Thomas BraunT Online
      Thomas Braun
      Most Active
      wrote on last edited by Thomas Braun
      #18

      @necromonger Die Zeile tut gar nix, die ist auskommentiert. Und fummel da nix rum.

      Linux-Werkzeugkasten:
      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
      NodeJS Fixer Skript:
      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

      1 Reply Last reply
      0
      • N Offline
        N Offline
        necromonger
        wrote on last edited by
        #19

        Das ist korrekt. Ich habe aber unter /etc/sudoers.d eine Datei zu liegen mit folgenden Name: iobroker

        Diese hat folgenden Inhalt:

        iobroker ALL=(ALL) ALL
        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/shutdown
        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/halt
        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/poweroff
        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/reboot
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/systemctl start
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/systemctl stop
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/mount
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/umount
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/systemd-run
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/apt-get
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/apt
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/dpkg
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/make
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/ping
        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/setcap
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/cat
        iobroker ALL=(ALL) NOPASSWD: /usr/bin/df
        iobroker ALL=(ALL) NOPASSWD: /usr/sbin/ldconfig
        ALL ALL=NOPASSWD: /usr/bin/systemctl start iobroker
        ALL ALL=NOPASSWD: /usr/bin/systemctl stop iobroker
        ALL ALL=NOPASSWD: /usr/bin/systemctl restart iobroker
        ALL ALL=(iobroker) NOPASSWD: /usr/bin/node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js *
        

        Dies wird dann nicht in die sudoers Datei eingefügt.

        Thomas BraunT 1 Reply Last reply
        0
        • N necromonger

          Das ist korrekt. Ich habe aber unter /etc/sudoers.d eine Datei zu liegen mit folgenden Name: iobroker

          Diese hat folgenden Inhalt:

          iobroker ALL=(ALL) ALL
          iobroker ALL=(ALL) NOPASSWD: /usr/sbin/shutdown
          iobroker ALL=(ALL) NOPASSWD: /usr/sbin/halt
          iobroker ALL=(ALL) NOPASSWD: /usr/sbin/poweroff
          iobroker ALL=(ALL) NOPASSWD: /usr/sbin/reboot
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/systemctl start
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/systemctl stop
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/mount
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/umount
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/systemd-run
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/apt-get
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/apt
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/dpkg
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/make
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/ping
          iobroker ALL=(ALL) NOPASSWD: /usr/sbin/setcap
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/cat
          iobroker ALL=(ALL) NOPASSWD: /usr/bin/df
          iobroker ALL=(ALL) NOPASSWD: /usr/sbin/ldconfig
          ALL ALL=NOPASSWD: /usr/bin/systemctl start iobroker
          ALL ALL=NOPASSWD: /usr/bin/systemctl stop iobroker
          ALL ALL=NOPASSWD: /usr/bin/systemctl restart iobroker
          ALL ALL=(iobroker) NOPASSWD: /usr/bin/node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js *
          

          Dies wird dann nicht in die sudoers Datei eingefügt.

          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          wrote on last edited by Thomas Braun
          #20

          @necromonger Doch, das ist richtig so wie es ist.

          which setcap
          

          Kannst auch mal den

          iobroker fix
          

          durchjagen.

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          1 Reply Last reply
          0
          • N Offline
            N Offline
            necromonger
            wrote on last edited by
            #21

            which setcap

            /usr/sbin/setcap
            

            iobroker fix durchgejagt und neugestartet. Gleicher Fehler!

            1 Reply Last reply
            0
            • N Offline
              N Offline
              necromonger
              wrote on last edited by necromonger
              #22

              @Thomas-Braun said in Radar2 läßt sich nicht mit root rechten ausführen:

              sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f which l2ping)

              Fehler gefunden:

              sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f /usr/sbin/arp)
              

              Kommandozeile hat bei der Installation irgendwie nicht funktioniert!

              Jetzt läuft alles!!

              Danke dir für deine Hilfe!

              Thomas BraunT 1 Reply Last reply
              0
              • N necromonger

                @Thomas-Braun said in Radar2 läßt sich nicht mit root rechten ausführen:

                sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f which l2ping)

                Fehler gefunden:

                sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f /usr/sbin/arp)
                

                Kommandozeile hat bei der Installation irgendwie nicht funktioniert!

                Jetzt läuft alles!!

                Danke dir für deine Hilfe!

                Thomas BraunT Online
                Thomas BraunT Online
                Thomas Braun
                Most Active
                wrote on last edited by Thomas Braun
                #23

                @necromonger sagte in Radar2 läßt sich nicht mit root rechten ausführen:

                sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f which l2ping)

                Das ist ja auch falsch. Da fehlen die Hochkommata um which l2ping
                Hatte ich aber auch so nicht geschrieben.

                Linux-Werkzeugkasten:
                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                NodeJS Fixer Skript:
                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                1 Reply Last reply
                0
                • Thomas BraunT Thomas Braun

                  @necromonger

                  which arp-scan
                  

                  und dann ersetzt du das im setcap entsprechend:

                  pi@raspberrypi:~ $ which arp-scan
                  /usr/sbin/arp-scan
                  pi@raspberrypi:~ $ sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f /usr/sbin/arp-scan)
                  
                  S Offline
                  S Offline
                  steimi
                  wrote on last edited by
                  #24

                  @thomas-braun ich habe (vermutlich nach dem Update auf Debian 12) das selbe Problem.

                  bei dem Befehl "which arp-scan" und "arp" kommt unter dem User iobroker immer die Meldung

                  iobroker@iobroker:~$ arp-scan
                  -bash: arp-scan: Kommando nicht gefunden.
                  

                  somit laufen auch die beiden setcap-Befehle für arp & arp-scan auf Fehler.

                  
                  iobroker@iobroker:~$ sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which arp-scan`)
                  readlink: fehlender Operand
                  „readlink --help“ liefert weitere Informationen.
                  usage: setcap [-h] [-q] [-v] [-n <rootid>] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
                  
                   Note <filename> must be a regular (non-symlink) file.
                   -r          remove capability from file
                   -           read capability text from stdin
                   <capsN>     cap_from_text(3) formatted file capability
                   [ Note: capsh --suggest="something..." might help you pick. ]
                   -h          this message and exit status 0
                   -q          quietly
                   -v          validate supplied capability matches file
                   -n <rootid> write a user namespace (!= 0) limited capability
                   --license   display the license info
                  iobroker@iobroker:~$
                  
                  

                  Im Log für Radar2 kommt dann

                  Adapter not running as root or iobroker has no sudo right, cannot use arp-scan!
                  

                  Gruppenzugehörigkeit ist folgende:

                  iobroker@iobroker:~$ sudo -u iobroker groups
                  iobroker tty dialout cdrom floppy sudo audio dip video plugdev netdev bluetooth
                  

                  was kann/muss ich tun?

                  System ist aktuell, js-controller 5.0.12/node 18.17.1

                  Thomas BraunT 1 Reply Last reply
                  0
                  • S steimi

                    @thomas-braun ich habe (vermutlich nach dem Update auf Debian 12) das selbe Problem.

                    bei dem Befehl "which arp-scan" und "arp" kommt unter dem User iobroker immer die Meldung

                    iobroker@iobroker:~$ arp-scan
                    -bash: arp-scan: Kommando nicht gefunden.
                    

                    somit laufen auch die beiden setcap-Befehle für arp & arp-scan auf Fehler.

                    
                    iobroker@iobroker:~$ sudo setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip $(eval readlink -f `which arp-scan`)
                    readlink: fehlender Operand
                    „readlink --help“ liefert weitere Informationen.
                    usage: setcap [-h] [-q] [-v] [-n <rootid>] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
                    
                     Note <filename> must be a regular (non-symlink) file.
                     -r          remove capability from file
                     -           read capability text from stdin
                     <capsN>     cap_from_text(3) formatted file capability
                     [ Note: capsh --suggest="something..." might help you pick. ]
                     -h          this message and exit status 0
                     -q          quietly
                     -v          validate supplied capability matches file
                     -n <rootid> write a user namespace (!= 0) limited capability
                     --license   display the license info
                    iobroker@iobroker:~$
                    
                    

                    Im Log für Radar2 kommt dann

                    Adapter not running as root or iobroker has no sudo right, cannot use arp-scan!
                    

                    Gruppenzugehörigkeit ist folgende:

                    iobroker@iobroker:~$ sudo -u iobroker groups
                    iobroker tty dialout cdrom floppy sudo audio dip video plugdev netdev bluetooth
                    

                    was kann/muss ich tun?

                    System ist aktuell, js-controller 5.0.12/node 18.17.1

                    Thomas BraunT Online
                    Thomas BraunT Online
                    Thomas Braun
                    Most Active
                    wrote on last edited by
                    #25

                    @steimi sagte in Radar2 läßt sich nicht mit root rechten ausführen:

                    was kann/muss ich tun?

                    Schau mal ob das überhaupt installiert ist.

                    sudo apt update
                    apt policy arp-scan
                    

                    Linux-Werkzeugkasten:
                    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                    NodeJS Fixer Skript:
                    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                    S 1 Reply Last reply
                    0
                    • Thomas BraunT Thomas Braun

                      @steimi sagte in Radar2 läßt sich nicht mit root rechten ausführen:

                      was kann/muss ich tun?

                      Schau mal ob das überhaupt installiert ist.

                      sudo apt update
                      apt policy arp-scan
                      
                      S Offline
                      S Offline
                      steimi
                      wrote on last edited by
                      #26

                      @thomas-braun

                      iobroker@iobroker:~$ sudo apt update
                      apt policy arp-scan
                      OK:1 https://security.debian.org/debian-security bookworm-security InRelease
                      OK:2 https://deb.debian.org/debian bookworm InRelease
                      Holen:3 https://deb.debian.org/debian bookworm-updates InRelease [52,1 kB]
                      OK:4 https://deb.debian.org/debian stable InRelease
                      Holen:5 https://deb.nodesource.com/node_18.x bookworm InRelease [4.586 B]
                      Es wurden 56,7 kB in 1 s geholt (80,5 kB/s).
                      Paketlisten werden gelesen… Fertig
                      Abhängigkeitsbaum wird aufgebaut… Fertig
                      Statusinformationen werden eingelesen… Fertig
                      Alle Pakete sind aktuell.
                      arp-scan:
                        Installiert:           1.10.0-2
                        Installationskandidat: 1.10.0-2
                        Versionstabelle:
                       *** 1.10.0-2 500
                              500 https://deb.debian.org/debian bookworm/main amd64 Packages
                              500 https://deb.debian.org/debian stable/main amd64 Packages
                              100 /var/lib/dpkg/status
                      iobroker@iobroker:~$
                      
                      Thomas BraunT 2 Replies Last reply
                      0
                      • S steimi

                        @thomas-braun

                        iobroker@iobroker:~$ sudo apt update
                        apt policy arp-scan
                        OK:1 https://security.debian.org/debian-security bookworm-security InRelease
                        OK:2 https://deb.debian.org/debian bookworm InRelease
                        Holen:3 https://deb.debian.org/debian bookworm-updates InRelease [52,1 kB]
                        OK:4 https://deb.debian.org/debian stable InRelease
                        Holen:5 https://deb.nodesource.com/node_18.x bookworm InRelease [4.586 B]
                        Es wurden 56,7 kB in 1 s geholt (80,5 kB/s).
                        Paketlisten werden gelesen… Fertig
                        Abhängigkeitsbaum wird aufgebaut… Fertig
                        Statusinformationen werden eingelesen… Fertig
                        Alle Pakete sind aktuell.
                        arp-scan:
                          Installiert:           1.10.0-2
                          Installationskandidat: 1.10.0-2
                          Versionstabelle:
                         *** 1.10.0-2 500
                                500 https://deb.debian.org/debian bookworm/main amd64 Packages
                                500 https://deb.debian.org/debian stable/main amd64 Packages
                                100 /var/lib/dpkg/status
                        iobroker@iobroker:~$
                        
                        Thomas BraunT Online
                        Thomas BraunT Online
                        Thomas Braun
                        Most Active
                        wrote on last edited by
                        #27

                        @steimi

                        Keine Ahnung. Hier läuft es... ;-)

                        Kann aber vom Büro aus nicht tiefer buddeln, wo es da bei dir klemmen könnte.

                        type -p arp-scan
                        

                        liefert?

                        Linux-Werkzeugkasten:
                        https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                        NodeJS Fixer Skript:
                        https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                        iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                        S 1 Reply Last reply
                        0
                        • S steimi

                          @thomas-braun

                          iobroker@iobroker:~$ sudo apt update
                          apt policy arp-scan
                          OK:1 https://security.debian.org/debian-security bookworm-security InRelease
                          OK:2 https://deb.debian.org/debian bookworm InRelease
                          Holen:3 https://deb.debian.org/debian bookworm-updates InRelease [52,1 kB]
                          OK:4 https://deb.debian.org/debian stable InRelease
                          Holen:5 https://deb.nodesource.com/node_18.x bookworm InRelease [4.586 B]
                          Es wurden 56,7 kB in 1 s geholt (80,5 kB/s).
                          Paketlisten werden gelesen… Fertig
                          Abhängigkeitsbaum wird aufgebaut… Fertig
                          Statusinformationen werden eingelesen… Fertig
                          Alle Pakete sind aktuell.
                          arp-scan:
                            Installiert:           1.10.0-2
                            Installationskandidat: 1.10.0-2
                            Versionstabelle:
                           *** 1.10.0-2 500
                                  500 https://deb.debian.org/debian bookworm/main amd64 Packages
                                  500 https://deb.debian.org/debian stable/main amd64 Packages
                                  100 /var/lib/dpkg/status
                          iobroker@iobroker:~$
                          
                          Thomas BraunT Online
                          Thomas BraunT Online
                          Thomas Braun
                          Most Active
                          wrote on last edited by
                          #28

                          @steimi sagte in Radar2 läßt sich nicht mit root rechten ausführen:

                           500 https://deb.debian.org/debian bookworm/main amd64 Packages                                                                    
                          
                              500 https://deb.debian.org/debian stable/main amd64 Packages
                          

                          Das ist übrigens eine Doublette. Solange bookworm=stable ist kein Problem. Könnte allerdings eins werden, wenn trixie=stable wird.

                          Linux-Werkzeugkasten:
                          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                          NodeJS Fixer Skript:
                          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                          S 1 Reply Last reply
                          0
                          • Thomas BraunT Thomas Braun

                            @steimi

                            Keine Ahnung. Hier läuft es... ;-)

                            Kann aber vom Büro aus nicht tiefer buddeln, wo es da bei dir klemmen könnte.

                            type -p arp-scan
                            

                            liefert?

                            S Offline
                            S Offline
                            steimi
                            wrote on last edited by
                            #29

                            @thomas-braun
                            danke erstmal für die schnelle Hilfe. wenn du irgendwann Zeit hast reicht mir das.

                            type -p arp-scan
                            

                            liefert gar kein Ergebnis?!

                            1 Reply Last reply
                            0
                            • Thomas BraunT Thomas Braun

                              @steimi sagte in Radar2 läßt sich nicht mit root rechten ausführen:

                               500 https://deb.debian.org/debian bookworm/main amd64 Packages                                                                    
                              
                                  500 https://deb.debian.org/debian stable/main amd64 Packages
                              

                              Das ist übrigens eine Doublette. Solange bookworm=stable ist kein Problem. Könnte allerdings eins werden, wenn trixie=stable wird.

                              S Offline
                              S Offline
                              steimi
                              wrote on last edited by steimi
                              #30

                              @thomas-braun danke für den Hinweis bzgl sources.list, habe es angepasst

                              1 Reply Last reply
                              0
                              • N necromonger

                                Hallo Forum-User,

                                ich habe Radar2 zu laufen. Funktioniert auch soweit, nur arp-scan geht nicht. Ich bekomme im log immer die Fehler

                                "Adapter not running as root or iobroker has no sudo right, cannot use arp-scan!"

                                Als sudo ist er eingetragen. Funktioniert aber anscheinend nicht.

                                Hatte jemand ein ähnliches Problem?

                                Gruss

                                T Offline
                                T Offline
                                tombox
                                wrote on last edited by
                                #31

                                @necromonger probier mal die GitHub version habe etwas gefixt

                                1 Reply Last reply
                                0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                566

                                Online

                                32.8k

                                Users

                                82.7k

                                Topics

                                1.3m

                                Posts
                                Community
                                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                ioBroker Community 2014-2025
                                logo
                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Home
                                • Recent
                                • Tags
                                • Unread 0
                                • Categories
                                • Unreplied
                                • Popular
                                • GitHub
                                • Docu
                                • Hilfe