[HOWTO] Mount devices by users without password

To allow users to mount devices (e.g. another partition of internal drive) without authentication, create /etc/polkit-1/rules.d/99-allow-mount.rules with these lines:
Note: This howto is added to the Mageia Wiki.
- Code: Select all
// Allow all users to mount devices without authentication
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount")) {
return polkit.Result.YES;
}
});
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system")) {
return polkit.Result.YES;
}
});
Note: This howto is added to the Mageia Wiki.