You are not logged in.

#1 2017-09-14 14:57:57

Arping vim Killall
Member
Registered: 2017-09-14
Posts: 2

udisks2 ntfs permissions

Hi,

I've looked around (including https://wiki.archlinux.org/index.php/Udisks) for a way to change the default permissions a Seagate external USB drive (ntfs) is mounted with.  I can manually mount with:

#sudo mount -t ntfs -o uid=1000,gid=1000,dmask=0022,fmask=0133 /dev/sde1 /mnt/usb/)

..and get the permissions I want.  Fat32 EXT drives mount with these permissions as well.  But ntfs mounts with directories executable by others.  I think I need help writing a udisks2 rule to get dirs 755 and files 644 when mounting?
(there are other solutions including /etc/fstab - but I want to be capable of working with udisks)

I am using Enlightenment, right-clicking the Seagate drive Desktop icon and selecting "mount".  I believe this calls udisks2 to mount the drive.  Any help is very much appreciated.

Cheers, Jono

*update 1*  I just found this: https://bbs.archlinux.org/extern.php?ac … &type=atom - which appears to be what I'm asking.

*update 2* I can also use the udisks2 command line tool to mount with custom permissions -

udisksctl mount -t ntfs -o dmask=0022,fmask=0133 -b /dev/sde1

I just cant find the right documentation/information to configure udisks2, or write an ntfs mount rule.  If anyone has experience writing udev/udisk rules please?

*update 3*  Here: https://igurublog.wordpress.com/2012/03 … for-linux/ is a bitch about this issue "Want to write a quick script to mount a device? Forget it, according to David Zeuthen" (udisks author)

Last edited by Arping vim Killall (2017-09-14 15:46:26)

Offline

#2 2017-09-15 10:37:05

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: udisks2 ntfs permissions

If mounted inside Enlightenment, where is the ntfs partition mounted?
Is it something like '/run/media/$USER/VolumeName' or something else?

Offline

#3 2017-09-15 10:50:56

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: udisks2 ntfs permissions


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2017-09-29 20:07:48

Arping vim Killall
Member
Registered: 2017-09-14
Posts: 2

Re: udisks2 ntfs permissions

Thanks for your replies.

berbae - that's right /run/media/you/Seagate Expansion Drive

Mr.Elendig - thanks but I dont seem to have an ntfs-3g UserMapping file...if thats what you suggested editing

Offline

#5 2017-09-30 15:38:13

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: udisks2 ntfs permissions

I don't know how Enlightenment calls udisks2 to mount the device, so I don't know if there is a possibility to give it the right mount options in a configuration parameter.
Maybe ask in a Enlightenment forum if this is possible.
But you have already a working way with the 'udisksctl mount' command line, so I suggest you use it as an easy solution.

Offline

Board footer

Powered by FluxBB