I would not recommend using the "permissions" option in mounting an ntfs partition. It allows changing the attributes of an ntfs partition at a file level which will just make a mess of things if you ever use this with Windows since it's not as simple as just adding an option to fstab. In fact if you follow the link above to it's source you will see that the original victim of this suggestion had a number of problems:
However, when I try to access files on the partition from Windows, the security settings are all messed up. On all the files (of those few I've examined) a new account called Account Unknown(long GUID) has been added to the list of users, and has full rights. Rigths for most other users are decreased so that I don't have rights to do stuff I expect. Notably "Everyone" does no longer seem to have right to "Traverse folder / execute".
I would suggest a couple of options instead for external devices:
 If you use this external device often then set this up in fstab so that it mounts with the kind of permissions you want:
*** With the device plugged in find the UUID number for that partition:
*** Make a new directory:
*** Edit fstab:
*** Add this line to the end of /etc/fstab
Change "some-long-number" to the uuid number you found in the blkid command above.
Code: Select all
UUID=some-long-number /media/USBDrive auto defaults,noauto,user,exec,umask=000 0 0
*** Save fstab
*** Unmount the drive if it is still mounted then plug the device back in.
udisks2 should use the fstab entry to automount the partition to /media/USBDrive with permissions of rwxrwxrwx.
Note: You can change the permissions by altering the umask number:
umask=000 results in rwxrwxrwx
umask=022 results in rwxr-xr-x
, another option which will work for any usb device:
*** Install bindfs:
*** Create a new directory called MyMedia:
*** Then run this command to see how this will work:
Code: Select all
sudo bindfs -o perms=0777 /media /MyMedia
When you plug in a usb drive it will mount in two different places simultaneously:
/media/$USER/LABEL and if the device is ntfs it will have permissions of 700.
/MyMedia/$USER/LABEL with permissions of 777
To make that happen on every boot add the bindfs line without sudo above the "exit 0" line in /etc/rc.local:
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# By default this script does nothing.
bindfs -o perms=0777 /media /MyMedia