- Code: Select all
polkit.addRule(function(action, subject) {
if (
subject.user == 'northsoft' &&
(
action.id == 'org.freedesktop.udisks2.filesystem-mount-system' ||
action.id == 'org.freedesktop.udisks2.filesystem-mount'
) &&
action.lookup("id.label") == 'my_ntfs_volume' &&
action.lookup("device") == '/dev/sda4' &&
action.lookup("id.uuid") == '61398737-7eb1-46c3-b7f7-63afea32e037'
)
return polkit.Result.YES;
return polkit.Result.NOT_HANDLED;
});
Previously i was able to mount NTFS volumes without prompting for root password. Now i have an error and such lines in journal:
- Code: Select all
фев 16 13:06:07 localhost.localdomain udisksd[2418585]: Unprivileged user can not mount NTFS block devices using the external FUSE
фев 16 13:06:07 localhost.localdomain udisksd[2418585]: library. Either mount the volume as root, or rebuild NTFS-3G with integrated
фев 16 13:06:07 localhost.localdomain udisksd[2418585]: FUSE support and make it setuid root. Please see more information at
фев 16 13:06:07 localhost.localdomain udisksd[2418585]: http://tuxera.com/community/ntfs-3g-faq/#unprivileged
Do i need to rebuild NTFS-3G? Or there is some more repo-friendly way?
UPD:
- Code: Select all
Linux localhost.localdomain 5.10.10-desktop-1.mga8 #1 SMP Sat Jan 23 17:25:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux