Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] Ping-Adapter pingt nicht mehr

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    SOLVED [gelöst] Ping-Adapter pingt nicht mehr

    This topic has been deleted. Only users with topic management privileges can see it.
    • Meister Mopper
      Meister Mopper @Thomas Braun last edited by

      @Thomas-Braun Da kommen nur die ganzen Schaltererläuterungen:

      $ sudo useradd -D thomas
      Usage: useradd [options] LOGIN
            useradd -D
            useradd -D [options]
      
      Options:
       -b, --base-dir BASE_DIR       base directory for the home directory of the
                                     new account
       -c, --comment COMMENT         GECOS field of the new account
       -d, --home-dir HOME_DIR       home directory of the new account
       -D, --defaults                print or change default useradd configuration
       -e, --expiredate EXPIRE_DATE  expiration date of the new account
       -f, --inactive INACTIVE       password inactivity period of the new account
       -g, --gid GROUP               name or ID of the primary group of the new
                                     account
       -G, --groups GROUPS           list of supplementary groups of the new
                                     account
       -h, --help                    display this help message and exit
       -k, --skel SKEL_DIR           use this alternative skeleton directory
       -K, --key KEY=VALUE           override /etc/login.defs defaults
       -l, --no-log-init             do not add the user to the lastlog and
                                     faillog databases
       -m, --create-home             create the user's home directory
       -M, --no-create-home          do not create the user's home directory
       -N, --no-user-group           do not create a group with the same name as
                                     the user
       -o, --non-unique              allow to create users with duplicate
                                     (non-unique) UID
       -p, --password PASSWORD       encrypted password of the new account
       -r, --system                  create a system account
       -R, --root CHROOT_DIR         directory to chroot into
       -s, --shell SHELL             login shell of the new account
       -u, --uid UID                 user ID of the new account
       -U, --user-group              create a group with the same name as the user
       -Z, --selinux-user SEUSER     use a specific SEUSER for the SELinux user mapping
      

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Meister Mopper last edited by

        @Meister-Mopper

        sudo adduser thomas
        
        Meister Mopper 1 Reply Last reply Reply Quote 0
        • Meister Mopper
          Meister Mopper @Thomas Braun last edited by

          @Thomas-Braun sagte in Ping-Adapter pingt nicht mehr:

          sudo adduser thomas

          $ sudo adduser thomas
          adduser: The user `thomas' already exists.
          

          Das hat er aber weiter oben schon ausgeworfen. Mit sudo kann ich jetzt pingen, aber offenbar der iobroker nicht.

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Meister Mopper last edited by

            @Meister-Mopper
            Die 'iobroker' ist vermutlich genauso gruppenlos wie 'thomas'.

            sudo -u iobroker groups
            
            Meister Mopper 1 Reply Last reply Reply Quote 0
            • Meister Mopper
              Meister Mopper @Thomas Braun last edited by

              @Thomas-Braun sagte in Ping-Adapter pingt nicht mehr:

              sudo -u iobroker groups

              $ sudo -u iobroker groups
              iobroker tty dialout audio video
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Meister Mopper last edited by

                @Meister-Mopper
                Hmmm. Eigentlich sollte 'dialout' richtig sein.
                Keine Ahnung dann...

                Meister Mopper 1 Reply Last reply Reply Quote 0
                • Meister Mopper
                  Meister Mopper @Thomas Braun last edited by

                  @Thomas-Braun habe das bei vmware gefunden und es hat funktioniert:
                  Als root ausführen:

                  chmod 4755 /bin/ping
                  

                  [gpadmin@hdm4] ping -c 1 admin.pivotal.com 
                  ping: icmp open socket: Operation not permitted
                  
                  You may see such an error if setuid bit (s) is not set on /bin/ping command. 
                  Verify using:
                  [INCORRECT]
                  ls -al /bin/ping
                  -rwxr-xr-x 1 root root 40760 May 20 2011 /bin/ping
                  
                  [CORRECT]
                  [root@pccadmin ~]# chmod 4755 /bin/ping
                  [root@pccadmin ~]# ls -tlr /bin/ping
                  -rwsr-xr-x. 1 root root 40760 Jul 18 2011 /bin/ping
                  where: s instead of x in the owner permissions means that the setuid is enabled, so this file will be executed with root permissions by all users.
                  
                  

                  Thomas Braun Axel Koeneke Rainer.K 3 Replies Last reply Reply Quote 4
                  • Thomas Braun
                    Thomas Braun Most Active @Meister Mopper last edited by Thomas Braun

                    @Meister-Mopper
                    Jetzt hat ping das setuid bit. Da hatte ich eben auch mal dran gedacht, das zu setzen. Nagut, wenn es nun geht...
                    Aber auch das sollst du nicht als root setzen, sondern mit
                    sudo
                    vor dem Befehl...

                    Meister Mopper 1 Reply Last reply Reply Quote 0
                    • Meister Mopper
                      Meister Mopper @Thomas Braun last edited by

                      @Thomas-Braun Alles klar, ich danke Dir für den guten Rat.

                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Meister Mopper last edited by

                        @Meister-Mopper
                        root login ist Tabu!

                        1 Reply Last reply Reply Quote 0
                        • Meister Mopper
                          Meister Mopper last edited by Meister Mopper

                          Sollte man denn root generell löschen, und wie kommt man dann an die root-Rechte, wenn sie mal nötig sind? Sorry, ich blicke da noch nicht durch.

                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Meister Mopper last edited by

                            @Meister-Mopper
                            Es gibt Distributionen, die haben keinen (aktiven) root. Man kann den unter debian auch ausknipsen. Würde ich aber nicht machen.
                            Entsprechende Rechte bekommst du, wenn halt 'sudo' vor den Befehl gesetzt wird. In ganz außergewöhnlichen Fällen kann man auch per

                            sudo su
                            

                            wieder 'root' werden. Aber das darf nur an besonders hohen Feiertagen der Fall sein.

                            Meister Mopper 1 Reply Last reply Reply Quote 0
                            • Meister Mopper
                              Meister Mopper @Thomas Braun last edited by

                              @Thomas-Braun @Meister-Mopper Wahrscheinlich - nach all den Informationen - sollte man nach der abschließenden Konfiguration "sudo su" den root-user löschen, oder?

                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Meister Mopper last edited by

                                @Meister-Mopper
                                Ich würde es nicht machen. Entfernt dein System nur weiter vom 'Standard' und macht ggf. das Helfen bei Problemen schwieriger.
                                Hab oben auch einen Fehler im Befehl. Richtig muss es

                                sudo su -
                                

                                heißen. Das - ist wichtig! Setzt die Rechte bzw. das Environment in der shell. Aber da du ja eh nicht mehr root werden musst kannste das auch wieder vergessen.

                                1 Reply Last reply Reply Quote 0
                                • Axel Koeneke
                                  Axel Koeneke @Meister Mopper last edited by

                                  @meister-mopper sagte in [gelöst] Ping-Adapter pingt nicht mehr:

                                  chmod 4755 /bin/ping

                                  Danke für den Tip!
                                  Ich hatte genau das gleiche Problem nach einer neuen, sauberen LCX Installation.
                                  VG
                                  Axel

                                  1 Reply Last reply Reply Quote 0
                                  • Rainer.K
                                    Rainer.K @Meister Mopper last edited by Rainer.K

                                    @meister-mopper Auch von mir vielen Dank! Ich bin schon verzweifelt, da die Instanzen Ping und Lupusec partout nicht funktionieren wollten. Der Fehler ist bei dem Neuaufbau von IoBroker mit einem neu angelegten LCX-Container (Ubuntu 20.0.4) aufgetreten.

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    472
                                    Online

                                    31.8k
                                    Users

                                    79.9k
                                    Topics

                                    1.3m
                                    Posts

                                    ping-adapter
                                    4
                                    27
                                    2905
                                    Loading More Posts
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    Community
                                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                    The ioBroker Community 2014-2023
                                    logo