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: 368

        @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: 50

          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: 50

            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: 368

              @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: 368