acarstoiu Apprentice
Joined: 20 Oct 2004 Posts: 195
|
Posted: Thu Oct 03, 2024 6:28 pm Post subject: Unable to mount via udisks an NTFS partition with uid, gid |
|
|
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 |
|