You are not logged in.

#1 2021-10-24 10:08:26

amity88
Member
Registered: 2012-11-21
Posts: 17

[solved]Nutilus has permissions issue when trying to mount partitions

It detects external harddrive and can mount them but when I try to mount one of the internal partitions, it throws this error:

"Unable to access location
Not Authorized to perform operation"

I checked journalctl but didn't notice any messages related to permissions. Also tried adding the user to storage and added this polkit rule. None of that helped. Any pointers would be greatly appreciated!

vi /usr/share/polkit-1/rules.d/50-udiskie.rules

polkit.addRule(function(action, subject) {
  var YES = polkit.Result.YES;
  var permission = {
    // required for udisks1:
    "org.freedesktop.udisks.filesystem-mount": YES,
    "org.freedesktop.udisks.luks-unlock": YES,
    "org.freedesktop.udisks.drive-eject": YES,
    "org.freedesktop.udisks.drive-detach": YES,
    // required for udisks2:
    "org.freedesktop.udisks2.filesystem-mount": YES,
    "org.freedesktop.udisks2.encrypted-unlock": YES,
    "org.freedesktop.udisks2.eject-media": YES,
    "org.freedesktop.udisks2.power-off-drive": YES,
    // required for udisks2 if using udiskie from another seat (e.g. systemd):
    "org.freedesktop.udisks2.filesystem-mount-other-seat": YES,
    "org.freedesktop.udisks2.filesystem-unmount-others": YES,
    "org.freedesktop.udisks2.encrypted-unlock-other-seat": YES,
    "org.freedesktop.udisks2.eject-media-other-seat": YES,
    "org.freedesktop.udisks2.power-off-drive-other-seat": YES
  };
  if (subject.isInGroup("storage")) {
    return permission[action.id];
  }
});

Last edited by amity88 (2021-10-24 10:44:17)

Offline

#2 2021-10-24 10:43:58

amity88
Member
Registered: 2012-11-21
Posts: 17

Re: [solved]Nutilus has permissions issue when trying to mount partitions

Found a fix, I just needed to start the graphical polkit authorization daemon.

Offline

Board footer

Powered by FluxBB