Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. mount.nfs: Operation not permitted

    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

    mount.nfs: Operation not permitted

    This topic has been deleted. Only users with topic management privileges can see it.
    • Negalein
      Negalein Global Moderator @crunchip last edited by

      @crunchip sagte in mount.nfs: Operation not permitted:

      https://forum.iobroker.net/post/785194

      hat aber immer so funktioniert.
      Und in anderen LXCs funktioniert ein Mount mit unprivileged: 1 auf NFS auch.

      crunchip 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @Negalein last edited by crunchip

        @negalein sagte in mount.nfs: Operation not permitted:

        Und in anderen LXCs funktioniert ein Mount mit unprivileged: 1 auf NFS auch.

        aber mit Sicherheit nicht auf offiziellem Wege
        65616bc1-b513-4e83-8cc2-83c0383adf62-image.png

        dann müsstest du mindestens apparmor deaktivieren und eventuell noch ein paar Einstellungen treffen

        AppArmor
        AppArmor profiles are used to restrict access to possibly dangerous actions. Some system calls, i.e. mount, are prohibited from execution.
        
        To trace AppArmor activity, use:
        
        # dmesg | grep apparmor
        Although it is not recommended, AppArmor can be disabled for a container. This brings security risks with it. Some syscalls can lead to privilege escalation when executed within a container if the system is misconfigured or if a LXC or Linux Kernel vulnerability exists.
        
        To disable AppArmor for a container, add the following line to the container configuration file located at /etc/pve/lxc/CTID.conf:
        
        lxc.apparmor.profile = unconfined
        
        Negalein Dutchman 2 Replies Last reply Reply Quote 0
        • Negalein
          Negalein Global Moderator @crunchip last edited by

          @crunchip sagte in mount.nfs: Operation not permitted:

          aber mit Sicherheit nicht auf offiziellem Wege

          das müsste dann @Dutchman gemacht haben, kann mir das aber nicht vorstellen.

          crunchip 1 Reply Last reply Reply Quote 0
          • crunchip
            crunchip Forum Testing Most Active @Negalein last edited by

            @negalein sind denn deine Laufwerke wieder mit proxmox verbunden?(Nas)

            wenn ja, alternativ wie weiter oben schon geschrieben wurde, könntest du den LXC auf privilegiert stellen, dann müsste auch der mount funktionieren.

            umstellen kannst du, indem du ein backup des LXC machst, anschliessend den LXC löscht und dann mittels backup wieder anlegst, dabei kommt dann das Fenster um diese Einstellung zu ändern.

            Negalein 1 Reply Last reply Reply Quote 0
            • Negalein
              Negalein Global Moderator @crunchip last edited by

              @crunchip sagte in mount.nfs: Operation not permitted:

              sind denn deine Laufwerke wieder mit proxmox verbunden?(Nas)

              Ja, sind sie.

              Ich hab nun nochmals alles Schritt für Schritt kontrolliert.
              Passt alles.
              Hab dann nochmals mit mount -t nfs 10.0.1.21:/volume1/Backups /mnt/Backups/ die Verbindung neu angelegt, obwohl schon vorhanden.
              Jetzt funktioniert es wieder. 🙂

              1 Reply Last reply Reply Quote 0
              • Dutchman
                Dutchman Developer Most Active Administrators @crunchip last edited by

                @crunchip sagte in mount.nfs: Operation not permitted:

                @negalein sagte in mount.nfs: Operation not permitted:

                Und in anderen LXCs funktioniert ein Mount mit unprivileged: 1 auf NFS auch.

                aber mit Sicherheit nicht auf offiziellem Wege
                65616bc1-b513-4e83-8cc2-83c0383adf62-image.png

                dann müsstest du mindestens apparmor deaktivieren und eventuell noch ein paar Einstellungen treffen

                AppArmor
                AppArmor profiles are used to restrict access to possibly dangerous actions. Some system calls, i.e. mount, are prohibited from execution.
                
                To trace AppArmor activity, use:
                
                # dmesg | grep apparmor
                Although it is not recommended, AppArmor can be disabled for a container. This brings security risks with it. Some syscalls can lead to privilege escalation when executed within a container if the system is misconfigured or if a LXC or Linux Kernel vulnerability exists.
                
                To disable AppArmor for a container, add the following line to the container configuration file located at /etc/pve/lxc/CTID.conf:
                
                lxc.apparmor.profile = unconfined
                

                Huh, Quatsch…

                https://drozmotix.github.io/languages/en/BasicSetup/03.ProxmoxLXC.html#_4-mount-device-into-lxc

                crunchip 1 Reply Last reply Reply Quote 1
                • crunchip
                  crunchip Forum Testing Most Active @Dutchman last edited by

                  @dutchman ok, war wohl ein kleiner Denkfehler meinerseits, das direkte durchreichen funktioniert nicht so einfach im unprivilegiertem LXC

                  Dutchman 1 Reply Last reply Reply Quote 2
                  • Dutchman
                    Dutchman Developer Most Active Administrators @crunchip last edited by

                    @crunchip sagte in mount.nfs: Operation not permitted:

                    @dutchman ok, war wohl ein kleiner Denkfehler meinerseits, das direkte durchreichen funktioniert nicht so einfach im unprivilegiertem LXC

                    korrekt, meist sind aber die NFS permissions der source das problem. Da man im LXC die guid nicht sauber Mappen kann muss ma NFS ohne permission verwenden und per IP die freigaben authentifizieren.

                    (daher die Anleitung auf meiner Seite :))

                    1 Reply Last reply Reply Quote 2
                    • Negalein
                      Negalein Global Moderator last edited by

                      @crunchip @Dutchman @liv-in-sky

                      Ich verfluche das Teil. 👿
                      Bräuchte wiedermal eure Hilfe.

                      Möchte mit sudo mount -t nfs 10.0.1.21:/volume1/Backups/Plex /mnt/Backups/ die Nas für die Plex-Backups einbinden.

                      Leider kommt dann

                      nega@Plex:/mnt/Backups$ sudo mount -t nfs 10.0.1.21:/volume1/Backups/Plex /mnt/Backups/
                      mount.nfs: Operation not permitted
                      

                      Auf der Synology müsste es passen, da die ioBroker-Backups (10.0.1.201) brav rübergeschoben werden.
                      c4984997-ae61-4aae-9d4a-d4a87b0d3951-image.png
                      1cf528f3-379b-42fc-95ac-255fae8cefeb-image.png

                      crunchip Glasfaser 2 Replies Last reply Reply Quote 0
                      • crunchip
                        crunchip Forum Testing Most Active @Negalein last edited by

                        @negalein fann vergleiche doch nochmal alles, mit ioBroker-Backups
                        Oder guck mal mit

                        ls -al /mnt
                        
                        Negalein 1 Reply Last reply Reply Quote 0
                        • Negalein
                          Negalein Global Moderator @crunchip last edited by

                          @crunchip sagte in mount.nfs: Operation not permitted:

                          Oder guck mal mit

                          nega@Plex:~$ ls -al /mnt
                          total 52
                          drwxr-xr-x 15 root   root    4096 Jul  5 08:00 .
                          drwxr-xr-x 24 root   root    4096 Jun  9 15:32 ..
                          drwxr-xr-x  2 root   root    4096 Mar 30 20:35 Backup
                          drwxr-xr-x  2 root   root    4096 Aug 20  2021 Backups
                          drwxrwxrwx  1 nobody nogroup   62 Jul  3 21:14 Film
                          drwxrwxrwx  1 nobody nogroup  114 Jul  3 21:14 Kind
                          drwxr-xr-x  2 root   root    4096 Mar 30 21:30 Kinder
                          drwxr-xr-x  2 root   root    4096 Sep 18  2021 MP3
                          drwxr-xr-x  2 root   root    4096 Aug 20  2021 MediaNAS
                          drwxr-xr-x  2 root   root    4096 Aug 20  2021 MediaNAs
                          drwxr-xr-x  2 root   root    4096 Sep 18  2021 Musik
                          drwxr-xr-x  2 root   root    4096 Aug 20  2021 Photo
                          drwxr-xr-x  2 root   root    4096 Aug 20  2021 PhotoNAS
                          drwxr-xr-x  2 root   root    4096 Jul  5 08:00 Plex
                          drwxr-xr-x  2 root   root    4096 Aug 20  2021 Video
                          nega@Plex:~$ sudo mount -t nfs 10.0.1.21:/volume1/Backups/ /mnt/Plex/
                          mount.nfs: Operation not permitted
                          nega@Plex:~$ sudo mount -t nfs 10.0.1.21:/volume2/Plexbackup /mnt/Plex/
                          mount.nfs: Operation not permitted
                          

                          Hab mal komplett von vorne angefangen (sudo mount -t nfs 10.0.1.21:/volume2/Plexbackup /mnt/Plex/).
                          Wieder selbes Ergebnis! 😞

                          crunchip Glasfaser 2 Replies Last reply Reply Quote 0
                          • crunchip
                            crunchip Forum Testing Most Active @Negalein last edited by

                            @negalein fällt mir auf die schnelle jetzt auch nix ein

                            Negalein 1 Reply Last reply Reply Quote 0
                            • Negalein
                              Negalein Global Moderator @crunchip last edited by

                              @crunchip sagte in mount.nfs: Operation not permitted:

                              fällt mir auf die schnelle jetzt auch nix ein

                              vielleicht kann @Dutchman mir weiterhelfen?

                              1 Reply Last reply Reply Quote 0
                              • Glasfaser
                                Glasfaser @Negalein last edited by

                                @negalein sagte in mount.nfs: Operation not permitted:
                                nega@Plex:~$ sudo mount -t nfs 10.0.1.21:/volume1/Backups/ /mnt/Plex/

                                Habe nicht alles verfolgt , habe kein proxmox aber 10.0.1.21 ist deine Synology !?

                                showmount -e 10.0.1.21
                                
                                Negalein 1 Reply Last reply Reply Quote 0
                                • Negalein
                                  Negalein Global Moderator @Glasfaser last edited by

                                  @glasfaser sagte in mount.nfs: Operation not permitted:

                                  aber 10.0.1.21 ist deine Synology !?

                                  Jep

                                  showmount -e 10.0.1.21

                                  nega@Plex:~$ showmount -e 10.0.1.21
                                  Export list for 10.0.1.21:
                                  /volume1/Backups    10.0.1.158,10.0.1.201
                                  /volume2/Plexbackup 10.0.1.158
                                  /volume2/ioBroker   10.0.1.201
                                  /volume1/Video      10.0.1.158,10.0.1.35,10.0.1.201
                                  /volume2/Video_2    10.0.1.158,10.0.1.35,10.0.1.201
                                  /volume1/NetBackup  10.0.1.201
                                  
                                  Glasfaser 1 Reply Last reply Reply Quote 0
                                  • Glasfaser
                                    Glasfaser @Negalein last edited by

                                    @negalein

                                    Firewall in der Syn aktiv !?

                                    Negalein 1 Reply Last reply Reply Quote 0
                                    • Negalein
                                      Negalein Global Moderator @Glasfaser last edited by

                                      @glasfaser sagte in mount.nfs: Operation not permitted:

                                      Firewall in der Syn aktiv !?

                                      Ja, aber die anderen Mounts von Plex auf die Syno funktionieren.

                                      1 Reply Last reply Reply Quote 0
                                      • Glasfaser
                                        Glasfaser @Negalein last edited by

                                        @negalein sagte in mount.nfs: Operation not permitted:

                                        /Backups/Plex

                                        Versuche mal :

                                        377b1630-d83f-47df-9753-2fc49a561421-grafik.png

                                        Negalein 1 Reply Last reply Reply Quote 0
                                        • Negalein
                                          Negalein Global Moderator @Glasfaser last edited by

                                          @glasfaser sagte in mount.nfs: Operation not permitted:

                                          Versuche mal :

                                          leider auch nichts

                                          nega@Plex:~$ sudo mount -t nfs 10.0.1.21:/volume1/Backups/ /mnt/Plex/
                                          [sudo] password for nega:
                                          mount.nfs: Operation not permitted
                                          
                                          Glasfaser 1 Reply Last reply Reply Quote 0
                                          • Glasfaser
                                            Glasfaser @Negalein last edited by

                                            @negalein

                                            Bin gerade nicht zuhause ... ( deshalb kann ich nicht nachschauen )

                                            Gibt es nicht für einen Unter-Ordner ein NFS Option !?

                                            90295ebc-fb0f-4e41-a9d8-448b82730078-grafik.png

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            940
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            9
                                            64
                                            7610
                                            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