[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 04:20 PM, Scott Ferguson wrote:
On 27/11/14 06:32, Rick Macdonald wrote:
On 26/11/14 08:24 AM, Rick Macdonald wrote:
On 26/11/14 12:23 AM, Scott Ferguson wrote:
On 26/11/14 16:14, Rick Macdonald wrote:
On 25/11/14 08:46 PM, Scott Ferguson wrote:
<snipped>
Sorry for replying to my own post...

I see now that it's the XFCE's volume management that is initiating the
(hotplug) mount. Some digging found that "udisks" is involved, so I
attached strace to the udisks-daemon and found this:

[pid 29472] 10:58:32 execve("/sbin/mount.ntfs", ["/sbin/mount.ntfs",
"/dev/sdg2", "/media/WinBackup_", "-o",
"rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,dmask=0077,fmask=0177"],
[/* 3 vars */]) = 0

So the mode that I'd like to change is coming from the udisks-daemon (or
its parent). Strace on udevd shows that it's involved but I don't see
any file modes.

That's were I'm at now. I played with udev rules a bit but I've never
worked with them before.
Quick comment (I will get back to this later today or early tomorrow):-
grep ntfs /lib/udev/rules.d/*.rules
/lib/udev/rules.d/80-udisks.rules:ENV{ID_FS_TYPE}=="ntfs|vfat", \

If this does control the effect you note, (which is easy to determine),
then it's simple to create a rule based on it
(/etc/udev.d/$something.rule) that will treat your WinBackup disk
differently

Later.

I saw that rule last night, but it is in the section "Partitions which desktops should not display" which didn't seem helpful.

Regards,
Rick


Reply to: