Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to mount via udisks an NTFS partition with uid, gid
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
acarstoiu
Apprentice
Apprentice


Joined: 20 Oct 2004
Posts: 195

PostPosted: Thu Oct 03, 2024 6:28 pm    Post subject: Unable to mount via udisks an NTFS partition with uid, gid Reply with quote

Hi.
I'm running a standard configuration of udev, udisks and polkit. That is, I have never touched their out-of-the-box configuration.

If an external USB storage device is plugged in, as a regular user, I have the possibility to mount its partitions from the Plasma tray (KDE user here), using the "Disk and devices" widget. Because polkit allows it, the mount succeeds, but the mounted NTFS filesystem is owned by root and uses the standard umask, so the partition is basically read-only for me (I can become root, but that's out of the question as a solution).
Another external device (an SD card) that is formatted as FAT is mounted just fine with all files belonging to my user and my default group. The mount documentation shows that this is default handling for uid and gid mount options for both FAT and NTFS filesystems.

I went on and placed the supposedly built-in configuration of udisks in the /etc/udisks2/mount_options.conf configuration file
Code:
ntfs:ntfs3_defaults=uid=$UID,gid=$GID
ntfs:ntfs3_allow=uid=$UID,gid=$GID,umask,dmask,fmask,iocharset,discard,nodiscard,sparse,nosparse,hidden,nohidden,sys_immutable,nosys_immutable,showmeta,noshowmeta,prealloc,noprealloc,hide_dot_files,nohide_dot_files,windows_names,nocase,case

(yes, I'm using the kernel driver), then unmounted and reinserted the USB storage device. No change, the NTFS partition is still mounted owned by root. I checked the standard configuration of udev for udisks and found nothing to explain why the settings above do not take effect :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum