[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to override fuse args to ntfs-3g to set permissions?



On 26/11/14 08:03, Rick Macdonald wrote:
> Well, many hours of googling, and running grep on my entire filesystem,
> have failed me this time.
> 
> I'm running up-to-date wheezy.

DE?

> 
> How does one override or change to options fuse gives to ntfs-3g (if I
> have that right)?
> 
> I have an NTFS filesystem on a USB-connected hard drive. With nothing in
> fstab, it gets auto-mounted as /media/WinBackup:
> 
> syslog:
> 
> Nov 25 12:56:17 timshel ntfs-3g[16915]: Version 2012.1.15AR.5 external
> FUSE 29
> Nov 25 12:56:17 timshel ntfs-3g[16915]: Mounted /dev/sdg2 (Read-Write,
> label "WinBackup", NTFS 3.1)
> Nov 25 12:56:17 timshel ntfs-3g[16915]: Cmdline options:
> rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,dmask=0077,fmask=0177
> Nov 25 12:56:17 timshel ntfs-3g[16915]: Mount options:
> rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sdg2,blkdev,blksize=4096
> 
> Nov 25 12:56:17 timshel ntfs-3g[16915]: Global ownership and permissions
> enforced, configuration type 7
> 
> According to the fuse man page, /etc/fuse.conf only supports mount_max
> and user_allow_other.
> 
> I can mount it manually by adding the following entry to fstab (which
> somehow inhibits the automount), but I'd much rather have it auto mount
> whenever I plug it in.


Without knowing more about your "Wheezy" the easiest option is probably
to create a custom udev rule.

> 
> LABEL=WinBackup /media/WinBackup ntfs
> rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,relatime,default_permissions,blkdev,umask=0000
> 0 0

What does "allow_other" do?
Why "umask=0000" (instead of 0022)?
Why not "uid=$username,gid=users"

Do you want to retain and use standard Windows permissions?
How many people will need access to the disk?

> 
> Rick
> 
> 


Kind regards


Reply to: