I have an Ubuntu 14.04 installed on my computer with XFCE as Desktop environment. When i'm inserting usb flash formatted in NTFS system mounts it with default permissions on files are setted in 600, and I want to change this behaviour to mount with default permissions 660 instead. How can I do it?
Ubuntu – How to change default permissions on automounted usb flash, formatted in NTFS?
automountntfspermissionsusb
Best Answer
Mount NTFS partition in a USB drive with custom permissions and owner
Assumption: the USB drive is seen as
sdb1
, modify to match the drive letter and partition number in your case. The general syntax issdxn
, wherex
is the drive letter andn
is the partition number as seen by for examplesudo lsblk -f
You can use the following command line method in order to get other permissions and ownership than the default.
Create mountpoint (only if you want a new mountpoint)
Unmount (only if already mounted)
Check your userID's
uid
number (it is usually 1000, sometimes 1001 or 1002 ...)and use that number if you want to grab ownership (default is
root
).Example of mount command line that should give you something that is close to what you want,
Example with full permissions for everybody (convenient, but not safe, when there are several users),
Check permissions and owner of the directories and files
Test
If this does not work
If this does not work, you may find a solution or at least an explanation at the following link,
Can't format my usb drive. I have already tried with mkdosfs and gparted: Analysis of the problem