| Summary: | Allow udisks2 to mount devices without authentication | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Alex Loginov <loginov_alex> |
| Component: | RPM Packages | Assignee: | All Packagers <pkg-bugs> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | doktor5000, fundawang, vergyz |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | udisks2 | CVE: | |
| Status comment: | |||
do you know from where come this file ? 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
David Walser
2013-08-11 01:26:02 CEST
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; } });
Florian Hubold
2015-10-07 20:23:15 CEST
CC:
(none) =>
doktor5000 Assigning to all packagers collectively. Assignee:
bugsquad =>
pkg-bugs |
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: