Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Today, I got a Not authorized to perform operation. message when I tried to mount a drive in Thunar.

# cat /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla 
[Local Users]

I'm in the storage group.

share|improve this question
up vote 2 down vote accepted

Rules of this sort, whether polkit or udev are no longer necessary if you have an active session under systemd/logind. Originally, rules of this sort were a workaround for non-consolekit sessions, but now Arch has moved to systemd they are no longer necessary and are more likely to inhibit correct automounting behaviour rather than assist it.

You can check that you have an active session with:

loginctl show-session $XDG_SESSION_ID

which should show amongst its output:


If this doesn't show, and you are not using a display manager, you need to ensure that when you start X your session is preserved—so X must be run on the same TTY where login occurred. See this entry on the Arch Wiki.

share|improve this answer

I got a really dirty solution, that need more tweaking, someone edit my answer please.

       polkit.addRule(function(action, subject) {
           if (action.id.indexOf("org.freedesktop.udisks") == 0) {
                   return polkit.Result.YES;

Put these contents to /etc/polkit-1/rules.d/XX.rules and fixes the problem, but how should I check the caller's user-group?


share|improve this answer
thanks you bro ... it is work... – PyDroid Nov 26 '14 at 14:43

According to this article to solve your problem you may add next lines to your /etc/polkit-1/rules.d/XX.rules

polkit.addRule(function(action, subject) {
        if (action.id == 'org.freedesktop.udisks2.filesystem-mount-system' &&  subject.user == '%username%') {
            return polkit.Result.YES;

replace %username% with the user you need to mount drives.

You can also permit mounting for the group of users. To do that insert next lines into your /etc/polkit-1/rules.d/XX.rules:

polkit.addRule(function(action, subject) {
        if (action.id == 'org.freedesktop.udisks2.filesystem-mount-system' && subject.isInGroup('%groupname%')) {
            return polkit.Result.YES;

where %groupname% is the group you want to make able to mount drives.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.