Tagged: , ,

Viewing 15 posts - 46 through 60 (of 102 total)
  • Author
    Posts
  • pstackpstack
    Participant
      Post count: 4

      @sinn3r thanks! Just solved the problem, hs_main runs as user 1000.1000 (uid named ‘hs’ on the original image). Therefore the remanent folder needs rw for this uid/gid.

      sinn3rsinn3r
      Participant
        Post count: 367

        @pstack you are right, the owner of the files/folders is set to the unzip-user when extracting the hs folder.
        >> chown hs:hs /hs -R
        after hs_admin has been running the first time should fix this and other problems.

        RoellerRoeller
        Keymaster
          Post count: 49

          So, we should create a user named hs:

          adduser hs

          and then make this user owner of the hs folder?

          chown hs:hs /hs -R

          What additional packages are needed?

          RoellerRoeller
          Keymaster
            Post count: 49

            Maybe we should give the hs_main process the SUID bit? So it will start as Root. Then we might have less problems. For example the host_check Baustein which doesn’t work anymore.. or the remanent folder which needs to have the ‘hs’ user as owner.
            Might this be an idea?

            sinn3rsinn3r
            Participant
              Post count: 367

              @roel
              a) hs_admin creates the ‘hs’ user on first run. It also creates most of the directories I think, so maybe we can delete them in the ZIP and let hs_admin do the job.

              b) hs_admin and hs_main both run as root, but hs_main spawns another hs_main process that runs as user ‘hs’. This is on purpose I think. As most logic modules need to be fixed anyway I think it’s best to stay this way.

              lebi1976lebi1976
              Participant
                Post count: 45

                @sinn3r Ich habe das mal versucht mit den anlegen des ´hsˋ Users und der Besitzzuweisung des Ordners ˋhsˋ – hat leider nichts gebracht, im Gegenteil jetzt bekomme ich beim Start die Fehlermeldung

                File „./../hs_main/lib_ipc.py“,line 45, in write
                IOError: [Errno 13] Permission denied: ´/hs/ipc/version´

                sinn3rsinn3r
                Participant
                  Post count: 367

                  @lebi1976
                  der /hs/ipc Ordner muss 777 haben als Rechte, da hier sowohl hs als auch root schreiben muss

                  HendrikHendrik
                  Participant
                    Post count: 13

                    Bei mir existiert auch kein User “hs”.
                    Wenn ich allerdings einen anlege und mit chown die Rechte gebe, bekomme ich im Gegensatz zu @lebi1976 keinen Fehler.
                    Was das Wetter betrifft, lass ich den HS mal ne Stunde laufen und starte ihn dann neu.
                    Theoretisch müsste dann ja der Ort gespeichert sein.

                    Edit: Also bei mir wird nichts gespeichert im Remanent-Speicher. Der Ordner bleibt leer und im HS steht weiterhin:
                    Save (date/stat/size): 01.01.1970 01:00:00 / ? / 0
                    Rechte fürs Remanent-Verzeichnis auf 777 helfen auch nicht weiter.

                    • This reply was modified 4 years, 8 months ago by HendrikHendrik.
                    mosjka1mosjka1
                    Participant
                      Post count: 41

                      Nach einem Tag Durchlauf hängt sich die Netzwerkverbindung auf…hmm? https://ibb.co/74XXxnN

                      IchIch
                      Participant
                        Post count: 38

                        @sinn3r
                        Ich habe die Änderung von ens33 in eht0 nach folgender Anleitung gemacht:

                        Wie sieht bei dir die Konfiguration in/etc/network/interfaces aus ?

                        IchIch
                        Participant
                          Post count: 38

                          Der Dienst timesyncd den Debian als default mitinstalliert, kann ohne weiteres gestoppt und deaktiviert werden, richtig ?

                          lebi1976lebi1976
                          Participant
                            Post count: 45

                            @sinn3r Das mit /hs/ipc/version habe ich gelöst – waren nicht die Rechte des Orderns sonder nur von der Datei version

                            Meine remanenten Daten werden auch alle brav gespeichert (Diagramme, Meldungsarchive,…) aber leider kein Bild
                            meines TKS-IP Gateway´s. Ich habe die `libcn32.so´ sowohl im /lib32 als auch im /lib kopiert und mit 777 Rechten versehen – leider
                            alles ergebnislos.

                            Hat hier noch jemand einen TKS-IP Gateway zum testen am laufen?

                            dcaubdcaub
                            Participant
                              Post count: 1

                              Anyone with a working version that can (will) provide a VM or Hyper-V or complete correct step by step manual prefered English ? Thanks !!!!

                              RoellerRoeller
                              Keymaster
                                Post count: 49

                                @lebi1976 I am also struggling to get the hstk to work. Can we somehow see what resources it request for the hstk when it executes? Maybe you can try to set the SUID bit here too (then it executes as root and maybe it needs to make a socket under Python or something else for which it needs root rights). I don’t see any Console output when the hstk is called (made a test project to test this hstk). Can we check with the original image to see why this doesn’t work?

                                IchIch
                                Participant
                                  Post count: 38

                                  Guten morgen,
                                  gestattet mir jemand einen Blick in seine Netzwerkkonfiguration. Hintergrund meiner Frage ist, nachdem ich das Interface ens33 und eht0 geändert habe, Probleme mit dem ntpd Service habe. Ich erhalte beim booten folgenden Fehler:

                                  18 Aug 09:51:13 ntpd(502): bind(20) AF-INET 127.0.0.1#123 flags 0x5 failed: Address already in use
                                  18 Aug 09:51:13 ntpd(502): unable to create socket on lo (2) for 127.0.0.1#123

                                  Laut @sinn3r deutet dies auf einen Fehler in der Netzwerkkonfiguration hin.

                                  Hier ein Blick in meine /etc/network/interfaces

                                  # This file describes the network interfaces available on your system
                                  # and how to activate them. For more Informations, see interfaces(5)

                                  source /etc/network/interfaces.d/*

                                  # The loopback network interface
                                  auto eth0
                                  iface lo inet loopback

                                  # The primary network interface
                                  allow-hotplug ens3
                                  face eth0 inet static
                                  address 192.168.178.11
                                  netmask 255.255.255.0
                                  gateway 192.168.178.1

                                  • This reply was modified 4 years, 8 months ago by IchIch.
                                  • This reply was modified 4 years, 8 months ago by IchIch.
                                Viewing 15 posts - 46 through 60 (of 102 total)
                                • You must be logged in to reply to this topic.