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

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

        @Meister-Mopper Dein user 'thomas' fehlt in diversen Gruppen.
        Ich weiß nicht genau was da für eine Distribution läuft.
        Lass mal

        lsb_release -a
        

        sehen.

        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:

          lsb_release -a

          $ lsb_release -a
          No LSB modules are available.
          Distributor ID: Debian
          Description:    Debian GNU/Linux 10 (buster)
          Release:        10
          Codename:       buster
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Meister Mopper last edited by Thomas Braun

            @Meister-Mopper Zunächst lässt du den Blödsinn mit dem root.
            Einmal noch als root:

            adduser thomas sudo
            

            und dann loggst du dich nie mehr als root ein.

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

              @Thomas-Braun macht er nicht:

              $ adduser thomas sudo
              -sh: 4: adduser: not found
              
              
              Meister Mopper 1 Reply Last reply Reply Quote 0
              • Meister Mopper
                Meister Mopper @Meister Mopper last edited by

                @Meister-Mopper Sorry, mein Fehler

                root@iobroker:~# adduser thomas sudo
                Adding user `thomas' to group `sudo' ...
                Adding user thomas to group sudo
                Done.
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Meister Mopper last edited by Thomas Braun

                  @Meister-Mopper
                  Ich bin nicht ganz sicher ob das funktioniert, aber versuch mal dem User die default Gruppen noch mitzugeben:

                  sudo useradd -D thomas
                  
                  Meister Mopper 1 Reply Last reply Reply Quote 0
                  • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            708
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            ping-adapter
                                            4
                                            27
                                            3102
                                            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