fstab mount options for umask, fmask, dmask for ntfs with noexec

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











up vote
0
down vote

favorite












I have a ntfs partition and when I mount it with default options in fstab I get for files and directories:
rwxrwxrwx = 0777
Obviously ntfs does not support "noexec" option and I do not want 'x' flag to the files and directories. So I'd like to ask what values shall I set to fmask, dmask and umask?
When I set umask=0666



/dev/sda3 /ntfsPartition ntfs-3g defaults,noatime,umask=0666,locale=en_US.utf8,errors=ro 0 0


I get d--x--x--x for the mount directory of the partition. I can go the directory:



cd /ntfsPartition


but I cannot read the content:



ls /ntfsPartition
ls: cannot open directory '.': Permission denied


Thanks in advance!










share|improve this question



























    up vote
    0
    down vote

    favorite












    I have a ntfs partition and when I mount it with default options in fstab I get for files and directories:
    rwxrwxrwx = 0777
    Obviously ntfs does not support "noexec" option and I do not want 'x' flag to the files and directories. So I'd like to ask what values shall I set to fmask, dmask and umask?
    When I set umask=0666



    /dev/sda3 /ntfsPartition ntfs-3g defaults,noatime,umask=0666,locale=en_US.utf8,errors=ro 0 0


    I get d--x--x--x for the mount directory of the partition. I can go the directory:



    cd /ntfsPartition


    but I cannot read the content:



    ls /ntfsPartition
    ls: cannot open directory '.': Permission denied


    Thanks in advance!










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a ntfs partition and when I mount it with default options in fstab I get for files and directories:
      rwxrwxrwx = 0777
      Obviously ntfs does not support "noexec" option and I do not want 'x' flag to the files and directories. So I'd like to ask what values shall I set to fmask, dmask and umask?
      When I set umask=0666



      /dev/sda3 /ntfsPartition ntfs-3g defaults,noatime,umask=0666,locale=en_US.utf8,errors=ro 0 0


      I get d--x--x--x for the mount directory of the partition. I can go the directory:



      cd /ntfsPartition


      but I cannot read the content:



      ls /ntfsPartition
      ls: cannot open directory '.': Permission denied


      Thanks in advance!










      share|improve this question















      I have a ntfs partition and when I mount it with default options in fstab I get for files and directories:
      rwxrwxrwx = 0777
      Obviously ntfs does not support "noexec" option and I do not want 'x' flag to the files and directories. So I'd like to ask what values shall I set to fmask, dmask and umask?
      When I set umask=0666



      /dev/sda3 /ntfsPartition ntfs-3g defaults,noatime,umask=0666,locale=en_US.utf8,errors=ro 0 0


      I get d--x--x--x for the mount directory of the partition. I can go the directory:



      cd /ntfsPartition


      but I cannot read the content:



      ls /ntfsPartition
      ls: cannot open directory '.': Permission denied


      Thanks in advance!







      fstab ntfs ntfs-3g






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 8 '17 at 21:30

























      asked Oct 8 '17 at 21:22









      Banish

      164




      164




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          umask says what bits to turn off, so you should try umask=0111.






          share|improve this answer




















          • It doesnt work. :) Shall I set only umask or umask, fmask and dmask or only fmask and dmask? $ cd ntfsPartition/ bash: cd: ntfsPartition/: Permission denied
            – Banish
            Oct 8 '17 at 21:37











          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%2f396904%2ffstab-mount-options-for-umask-fmask-dmask-for-ntfs-with-noexec%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













          umask says what bits to turn off, so you should try umask=0111.






          share|improve this answer




















          • It doesnt work. :) Shall I set only umask or umask, fmask and dmask or only fmask and dmask? $ cd ntfsPartition/ bash: cd: ntfsPartition/: Permission denied
            – Banish
            Oct 8 '17 at 21:37















          up vote
          0
          down vote













          umask says what bits to turn off, so you should try umask=0111.






          share|improve this answer




















          • It doesnt work. :) Shall I set only umask or umask, fmask and dmask or only fmask and dmask? $ cd ntfsPartition/ bash: cd: ntfsPartition/: Permission denied
            – Banish
            Oct 8 '17 at 21:37













          up vote
          0
          down vote










          up vote
          0
          down vote









          umask says what bits to turn off, so you should try umask=0111.






          share|improve this answer












          umask says what bits to turn off, so you should try umask=0111.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 8 '17 at 21:34









          Scott

          6,29942347




          6,29942347











          • It doesnt work. :) Shall I set only umask or umask, fmask and dmask or only fmask and dmask? $ cd ntfsPartition/ bash: cd: ntfsPartition/: Permission denied
            – Banish
            Oct 8 '17 at 21:37

















          • It doesnt work. :) Shall I set only umask or umask, fmask and dmask or only fmask and dmask? $ cd ntfsPartition/ bash: cd: ntfsPartition/: Permission denied
            – Banish
            Oct 8 '17 at 21:37
















          It doesnt work. :) Shall I set only umask or umask, fmask and dmask or only fmask and dmask? $ cd ntfsPartition/ bash: cd: ntfsPartition/: Permission denied
          – Banish
          Oct 8 '17 at 21:37





          It doesnt work. :) Shall I set only umask or umask, fmask and dmask or only fmask and dmask? $ cd ntfsPartition/ bash: cd: ntfsPartition/: Permission denied
          – Banish
          Oct 8 '17 at 21:37


















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f396904%2ffstab-mount-options-for-umask-fmask-dmask-for-ntfs-with-noexec%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