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.
2 Answers
From man mount:
Mount options for ntfs
︙
uid=value, gid=value and umask=valueSet 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.
-
Thanks for the solution! Is there a way to add this to /etc/fstab, so that it may mount automatically with all permissions? Aug 22, 2018 at 5:51
-
Sure! You can use the same arguments in fstab as in the
mount
command; seeman 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. Aug 22, 2018 at 15:34
I am not sure, perhaps you need the allow_other option?
mount -t ntfs -o umask=000,allow_other /dev/sda1 /media/drive
ntfs-3g
? assuming you have the package with the same name?ntfs
option for mount uses ntfs-3g, it has dones so for a while now.ntfs-3g
package which I was missing. Maybe could be useful to someone.