How to prevent automount (autofs) changing protection of indirect map mountpoint

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












How do I prevent autofs (automount) from changing the protection of its owned mountpoint.



# chmod 2771 /cust
# ls -ld /cust
drwxrws--x. 2 root root 4096 Mar 13 14:43 /cust
# systemctl start autofs
# ls -ld /cust
drwxr-xr-x 332 root root 0 Mar 14 16:26 /cust

# grep cust auto.master
/cust /etc/auto.cust --ghost
# grep user auto.cust
user :/fs1/cust/&


Regards,







share|improve this question
























    up vote
    0
    down vote

    favorite












    How do I prevent autofs (automount) from changing the protection of its owned mountpoint.



    # chmod 2771 /cust
    # ls -ld /cust
    drwxrws--x. 2 root root 4096 Mar 13 14:43 /cust
    # systemctl start autofs
    # ls -ld /cust
    drwxr-xr-x 332 root root 0 Mar 14 16:26 /cust

    # grep cust auto.master
    /cust /etc/auto.cust --ghost
    # grep user auto.cust
    user :/fs1/cust/&


    Regards,







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      How do I prevent autofs (automount) from changing the protection of its owned mountpoint.



      # chmod 2771 /cust
      # ls -ld /cust
      drwxrws--x. 2 root root 4096 Mar 13 14:43 /cust
      # systemctl start autofs
      # ls -ld /cust
      drwxr-xr-x 332 root root 0 Mar 14 16:26 /cust

      # grep cust auto.master
      /cust /etc/auto.cust --ghost
      # grep user auto.cust
      user :/fs1/cust/&


      Regards,







      share|improve this question












      How do I prevent autofs (automount) from changing the protection of its owned mountpoint.



      # chmod 2771 /cust
      # ls -ld /cust
      drwxrws--x. 2 root root 4096 Mar 13 14:43 /cust
      # systemctl start autofs
      # ls -ld /cust
      drwxr-xr-x 332 root root 0 Mar 14 16:26 /cust

      # grep cust auto.master
      /cust /etc/auto.cust --ghost
      # grep user auto.cust
      user :/fs1/cust/&


      Regards,









      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 14 at 20:40









      Paul Hergt

      1




      1




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          The permissions of the mount point after you mounted your nfs share are the ones of your nfs folder on your nfs server.



          you can try to change the permissions on your nfs server:



          chmod 2771 /fs1/cust 





          share|improve this answer




















          • Not sure I follow, it is true that the /fs1 filesystem has drwxr-xr-x
            – Paul Hergt
            Mar 15 at 14:33










          • One other point, the /fs1/cust does have 2771 protection.
            – Paul Hergt
            Mar 15 at 15:11










          • Sorry, I was a bit quick to read and saw user fs1:/cust/& instead of user :/fs1/cust/&
            – Hadrien Huvelle
            Mar 15 at 18:04











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430257%2fhow-to-prevent-automount-autofs-changing-protection-of-indirect-map-mountpoint%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          The permissions of the mount point after you mounted your nfs share are the ones of your nfs folder on your nfs server.



          you can try to change the permissions on your nfs server:



          chmod 2771 /fs1/cust 





          share|improve this answer




















          • Not sure I follow, it is true that the /fs1 filesystem has drwxr-xr-x
            – Paul Hergt
            Mar 15 at 14:33










          • One other point, the /fs1/cust does have 2771 protection.
            – Paul Hergt
            Mar 15 at 15:11










          • Sorry, I was a bit quick to read and saw user fs1:/cust/& instead of user :/fs1/cust/&
            – Hadrien Huvelle
            Mar 15 at 18:04















          up vote
          0
          down vote













          The permissions of the mount point after you mounted your nfs share are the ones of your nfs folder on your nfs server.



          you can try to change the permissions on your nfs server:



          chmod 2771 /fs1/cust 





          share|improve this answer




















          • Not sure I follow, it is true that the /fs1 filesystem has drwxr-xr-x
            – Paul Hergt
            Mar 15 at 14:33










          • One other point, the /fs1/cust does have 2771 protection.
            – Paul Hergt
            Mar 15 at 15:11










          • Sorry, I was a bit quick to read and saw user fs1:/cust/& instead of user :/fs1/cust/&
            – Hadrien Huvelle
            Mar 15 at 18:04













          up vote
          0
          down vote










          up vote
          0
          down vote









          The permissions of the mount point after you mounted your nfs share are the ones of your nfs folder on your nfs server.



          you can try to change the permissions on your nfs server:



          chmod 2771 /fs1/cust 





          share|improve this answer












          The permissions of the mount point after you mounted your nfs share are the ones of your nfs folder on your nfs server.



          you can try to change the permissions on your nfs server:



          chmod 2771 /fs1/cust 






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 14 at 22:21









          Hadrien Huvelle

          245110




          245110











          • Not sure I follow, it is true that the /fs1 filesystem has drwxr-xr-x
            – Paul Hergt
            Mar 15 at 14:33










          • One other point, the /fs1/cust does have 2771 protection.
            – Paul Hergt
            Mar 15 at 15:11










          • Sorry, I was a bit quick to read and saw user fs1:/cust/& instead of user :/fs1/cust/&
            – Hadrien Huvelle
            Mar 15 at 18:04

















          • Not sure I follow, it is true that the /fs1 filesystem has drwxr-xr-x
            – Paul Hergt
            Mar 15 at 14:33










          • One other point, the /fs1/cust does have 2771 protection.
            – Paul Hergt
            Mar 15 at 15:11










          • Sorry, I was a bit quick to read and saw user fs1:/cust/& instead of user :/fs1/cust/&
            – Hadrien Huvelle
            Mar 15 at 18:04
















          Not sure I follow, it is true that the /fs1 filesystem has drwxr-xr-x
          – Paul Hergt
          Mar 15 at 14:33




          Not sure I follow, it is true that the /fs1 filesystem has drwxr-xr-x
          – Paul Hergt
          Mar 15 at 14:33












          One other point, the /fs1/cust does have 2771 protection.
          – Paul Hergt
          Mar 15 at 15:11




          One other point, the /fs1/cust does have 2771 protection.
          – Paul Hergt
          Mar 15 at 15:11












          Sorry, I was a bit quick to read and saw user fs1:/cust/& instead of user :/fs1/cust/&
          – Hadrien Huvelle
          Mar 15 at 18:04





          Sorry, I was a bit quick to read and saw user fs1:/cust/& instead of user :/fs1/cust/&
          – Hadrien Huvelle
          Mar 15 at 18:04













           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430257%2fhow-to-prevent-automount-autofs-changing-protection-of-indirect-map-mountpoint%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay