Results 1 to 10 of 14

Thread: External NTFS drive permissions

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Beans
    Hidden!

    External NTFS drive permissions

    I used to share some folders on my NTFS external hard drive through samba in Jaunty. Since I upgraded to Karmic, these shares no longer work.

    It seems that the permissions for this drive are only set for myself (no permissions for group or others) and I can not change these permissions (not with chmod or with nautilus, they keep jumping back).

    I would like to have the same permissions on my external drives as in jaunty (owned by root and writable, executable by everyone). Since I use several drives I would like to avoid using /etc/fstab.

    I tried adding the key mount_options with [umask=000] in system/storage/default_options/ntfs . But this doesn't seem to work in Karmic.

    Where can I change the permissions on these automatically mounted devices.

    Thank you,
    Niko

  2. #2
    Join Date
    Feb 2007
    Beans
    Hidden!

    Re: External NTFS drive permissions

    It seems that these mount options are hard-coded in devicekit-disks.

    However I have found a dirty hack which seems to work for me. I made the following script for my two external hard drives. It first unmounts the drives, and then mounts them again with dmask=000 as mount option.

    Code:
    #!/bin/bash
    
    devkit-disks --unmount /dev/disk/by-uuid/BEDC44F4DC44A90B
    devkit-disks --unmount /dev/disk/by-uuid/0D3594370C618A2A
    
    devkit-disks --mount-options "dmask=000" --mount /dev/disk/by-uuid/BEDC44F4DC44A90B
    devkit-disks --mount-options "dmask=000" --mount /dev/disk/by-uuid/0D3594370C618A2A

    I am still looking for a solution to change the default mount options.

  3. #3
    Join Date
    Jan 2008
    Beans
    1

    Re: External NTFS drive permissions

    I am having the exact same problem. Is there a better solution to this?

  4. #4
    Join Date
    Nov 2009
    Beans
    4

    Re: External NTFS drive permissions

    I have the exact same problem as well. I'm going to file a bug.

    We can't continue to have bugs like this in newly released versions if we want to get wider adoption of Ubuntu. Do developers consider the affect that changing something like a mechanism will have for users?

    Worse, nowhere can I find any information on how to change the default permissions for mounted USB drives. Googling turns up any number of possiblities: HAL, UDEV, fstab, automount, gconf. Which one does Ubuntu use? I have no idea. I really shouldn't have to know. There are megabytes of help files but no where can I find the information I need.

  5. #5
    Join Date
    Nov 2009
    Beans
    4

    Re: External NTFS drive permissions


  6. #6
    Join Date
    Sep 2008
    Beans
    17

    Re: External NTFS drive permissions

    just wondering if there has been any updates to this problem yet..?
    Cheers
    D

  7. #7
    Join Date
    Mar 2008
    Beans
    6

    Re: External NTFS drive permissions

    Quote Originally Posted by nikogawa View Post
    Code:
    #!/bin/bash
    devkit-disks --unmount /dev/disk/by-uuid/BEDC44F4DC44A90B
    On Ubuntu Lucid (10.4) the devkit-disks command has been replaced by /usr/bin/udisks

  8. #8
    Join Date
    Sep 2009
    Location
    Portland, OR
    Beans
    3
    Distro
    Ubuntu Karmic Koala (testing)

    Re: External NTFS drive permissions

    Thanks for this information!

  9. #9
    Join Date
    Aug 2008
    Beans
    1

    Re: External NTFS drive permissions

    Download the sources via apt-get

    Code:
    mkdir udisks
    cd udisks
    apt-get source udisks
    Modify src/device.c

    Code:
    cd udisks-1.0.1+git20100614
    gedit src/device.c
    Line 5878: Change default dmask and fmask to whatever you desire:

    Code:
    /* ---------------------- ntfs -------------------- */
    /* this is assuming that ntfs-3g is used */
    
    static const char *ntfs_defaults[] = { "uid=", "gid=", "dmask=0000", /*"fmask=0111",*/ NULL };
    static const char *ntfs_allow[] = { "umask=", "dmask=", "fmask=", NULL };
    Build and install

    Code:
    sudo apt-get build-dep udisks
    debuild
    cd ..
    sudo dpkg -i udisks_1.0.1+git20100614*.deb
    To go back

    Code:
    apt-get install --reinstall udisks

Tags for this Thread

Bookmarks

Posting Permissions

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