1234567891011121314 |
- #!/bin/sh
- mkdir -p /etc/polkit-1/rules.d/
- echo '
- // Allow udisks2 to mount devices without authentication
- // for users in the "wheel" group.
- polkit.addRule(function(action, subject) {
- if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
- action.id == "org.freedesktop.udisks2.filesystem-mount") &&
- subject.isInGroup("wheel")) {
- return polkit.Result.YES;
- }
- });
- ' > /etc/polkit-1/rules.d/10-udisks2.rules
|