Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- polkit.addRule(function(action, subject) {
- if (action.id == "org.freedesktop.udisks2.filesystem-mount-system") {
- return polkit.Result.YES;
- }
- });
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---------------------------------- put at bottom 50-default.rules under /etc/polkit
- ============
- permission disks
- =============
- sudo chmod -R -v 777 *
- ==============
- Make this polkit rule in /etc/polkit-1/rules.d/00-mount-internal.rules:
- polkit.addRule(function(action, subject) {
- if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" &&
- subject.local && subject.active && subject.isInGroup("storage")))
- {
- return polkit.Result.YES;
- }
- });
- And add your user to storage group:
- # usermod -aG storage username
- ___________
- ntfs-3g
- gvfs
- __________
- debian
- #/etc/polkit-1/localauthority/50-local.d/automount.pkla
- [Allow Automount]
- Identity=unix-group:plugdev
- Action=org.freedesktop.udisks2.filesystem-mount*
- ResultAny=yes
- ResultInactive=yes
- ResultActive=yes
- [Allow Eject]
- Identity=unix-group:plugdev
- Action=org.freedesktop.udisks2.eject-media*
- ResultAny=yes
- ResultInactive=yes
- ResultActive=yes
- [Allow Mounting of fstab]
- Identity=unix-group:plugdev
- Action=org.freedesktop.udisks2.filesystem-fstab*
- ResultAny=yes
- ResultInactive=yes
- ResultActive=yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement