How to mount an NTFS filesystem, allowing all users full access?

9

3

How could I mount an NTFS filesystem in a way that would allow all users full access to it? If I use sudo mount -t ntfs /dev/sda1 /media/drive, then only the root user can use it. It won't let me change the permissions/ownership on files after it's mounted (although folders are ok), which is really annoying.

Zelda64fan

Posted 2013-04-30T17:05:28.633

Reputation: 451

Just to note that I solved a similar problem by installing the ntfs-3g package which I was missing. Maybe could be useful to someone. – Michele – 2014-09-24T20:40:31.990

1tried ntfs-3g ? assuming you have the package with the same name? – Lorenzo Von Matterhorn – 2013-04-30T17:11:05.780

@D0rf i think that the ntfs option for mount uses ntfs-3g, it has dones so for a while now. – terdon – 2013-04-30T18:06:59.743

@terdon thank you for the comment, it indeed seems to happen that way. – Lorenzo Von Matterhorn – 2013-04-30T19:30:47.197

Answers

21

From man mount:

Mount options for ntfs

            ︙
uid=value, gid=value and umask=value

    Set the file permission on the filesystem. The umask value is given in octal. By default, the files are owned by root and not readable by somebody else.

So you should be able to do what you're after with something like

mount -t ntfs -o umask=000 /dev/sda1 /media/drive

which should give everyone read and write permissions on the volume.

Aaron Miller

Posted 2013-04-30T17:05:28.633

Reputation: 8 849

Thanks for the solution! Is there a way to add this to /etc/fstab, so that it may mount automatically with all permissions? – thephoenix01 – 2018-08-22T05:51:37.017

Sure! You can use the same arguments in fstab as in the mount command; see man 5 fstab or the web equivalent for details on the format, or the leading comments which may be included in /etc/fstab on the system where you're looking to make the change. – Aaron Miller – 2018-08-22T15:34:51.723

1

I am not sure, perhaps you need the allow_other option?

mount -t ntfs -o umask=000,allow_other /dev/sda1 /media/drive

Fusca Software

Posted 2013-04-30T17:05:28.633

Reputation: 121