Description of problem: Connect disks withoun root password # gpasswd -a $USER users File: /etc/polkit-1/rules.d/10-allow-mount.rules: // Allow udisks2 to mount devices without authentication // for users in the "users" group. polkit.addRule(function(action, subject) { if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" || action.id == "org.freedesktop.udisks2.filesystem-mount") && subject.isInGroup("users")) { return polkit.Result.YES; } }); polkit.addRule(function(action, subject) { if ((action.id == "org.freedesktop.udisks.filesystem-mount-system-internal") && subject.isInGroup("users")) { return polkit.Result.YES; } }); Reproducible: Steps to Reproduce:
do you know from where come this file ?
http://linuxforum.ru/viewtopic.php?id=28277 Number 6.
this does'nt seems to answer ;)
This file is from here: https://wiki.archlinux.org/index.php/PolicyKit#Workaround_to_mount_filesytems_by_user_in_group_storage_without_password Original post: https://bbs.archlinux.org/viewtopic.php?id=151954
CC: (none) => vergyz
CC: (none) => fundawang
http://www.altlinux.org/Sysvinit: polkit.addRule(function(action, subject) { if ( action.id == "org.freedesktop.udisks2.filesystem-mount" || action.id == "org.freedesktop.udisks2.filesystem-mount-system" || action.id == "org.freedesktop.udisks2.filesystem-mount-system-internal" ) { return polkit.Result.YES; } }); polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.udisks2.eject-media" ) { return polkit.Result.YES; } });
CC: (none) => doktor5000
Assigning to all packagers collectively.
Assignee: bugsquad => pkg-bugsSource RPM: (none) => udisks2