Results 1 to 7 of 7

Thread: Mounting an r/w partition

  1. #1
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    43

    Default Mounting an r/w partition

    Hi all,

    I have a little problem with a ntfs partition. In one hand ntfs-3g is installed in the computer and in the other hand this is the line in fstab for this partition:
    Code:
    UUID=A21EB68D1EB65A4D /mnt/intercambio ntfs-3g user,users,gid=users,fmask=133,dmask=022,locale=es_ES.utf8 0 0
    The attributes for that folder are:
    Code:
    drwxr-xr-x 1 root users 12288 feb  4 23:31 intercambio
    The problem is that I cannot write in this folder and cannot change its attributes for the group can write in it.

    ¿Anyone could give me a tip of what I have to do?


    Greetings / Saludos.

  2. #2
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,005

    Default Re: Mounting an r/w partition

    If you have 022 in dmask you can't write to it, because it translates to 755 (rwx owner, rx group, rx all) fmask 133 on the other hand translates to 644 (rw owner, r group, r all)

    You need to alter them to allow writing by the users you want to.
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

  3. #3
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    43

    Default Re: Mounting an r/w partition

    Hello,

    so if I want to have write permissions for owner and group in that folder I should leave both fmask and dmask as 007 (that translates to 770) isn't it? Sorry but I'm little newbe with this.


    Greetings / Saludos.

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Mounting an r/w partition

    On 2015-02-06 19:06, Viskovitz wrote:
    >
    > Hello,
    >
    > so if I want to have write permissions for owner and group in that
    > folder I should leave both fmask and dmask as 007 (that translates to
    > 770) isn't it?


    Eum... no.

    fmask applies to files, dmask to directories.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,574
    Blog Entries
    1

    Default Re: Mounting an r/w partition

    Worth reading the man pages for more info
    Code:
    man ntfs-3g
    Code:
    OPTIONS
           Below is a summary of the options that ntfs-3g accepts.
    
           uid=value and gid=value
                  Set  the  owner  and  the  group  of  files  and directories. The values are numerical.
    The
                  defaults are the uid and gid of the current process.
    
           umask=value
                  Set the  bitmask of the file and directory permissions that are not present.  The
    value  is
                  given in octal. The default value is 0 which means full access to everybody.
    
           fmask=value
                  Set the  bitmask of the file permissions that are not present.  The value is given in
    octal.
                  The default value is 0 which means full access to everybody.
    
           dmask=value
                  Set the  bitmask of the directory permissions that are not present. The value  is
    given  in
                  octal. The default value is 0 which means full access to everybody.

  6. #6
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    43

    Default Re: Mounting an r/w partition

    Hello, for any other with the same issue (although i thing this is a very basic question) I changed the line in the first post bby this one and I can write in the partition:
    Code:
    UUID=A21EB68D1EB65A4D /mnt/intercambio         ntfs-3g    users,gid=users,umask=0007,locale=es_ES.UTF-8 0 0
    So thank you every one.


    Greetings / Saludos.

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Mounting an r/w partition

    On 2015-02-07 01:26, Viskovitz wrote:
    >
    > Hello, for any other with the same issue (although i thing this is a
    > very basic question) I changed the line in the first post bby this one
    > and I can write in the partition:
    >
    > Code:
    > --------------------
    > UUID=A21EB68D1EB65A4D /mnt/intercambio ntfs-3g users,gid=users,umask=0007,locale=es_ES.UTF-8 0 0
    > --------------------
    >


    I use "fmask=0117,dmask=0007".

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •