Nautilus doesn't mount in Xmonad: Not authorized to perform operation
Solution 1
Open Disks from Dash
Choose the desired disk/partition
Edit Mount Options
Uncheck require additional authorization
Solution 2
You need to start polkit in your xsession.
You most likely have a .desktop
file in /etc/xdg/autostart
in the path somewhere with the full path to your polkit daemon.
For me adding /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
in ~/.Xsession
fixed the issue.
Related videos on Youtube
Comments
-
Sibi over 1 year
I'm using Xmonad as my window manager.
In the application nautilus, whenever I try to mount my usb sticks, it shows me the dialog
"Not authorized to perform operation."
I have tried putting this in
~/.xsession
file:nautilus --no-desktop -n &
But that doesn't work.
This is my current
~/.xsession
file:#!/bin/bash gnome-settings-daemon & exec dbus-launch --exit-with-session xmonad
Also, when I start a pure gnome session, everything works fine. Any idea on how to make nautilus ask password or mount the usb stick on clicking it in the nautilus ?
-
bleeves about 10 yearsHave you tried launching nautilus as root from a terminal?
-
Sibi about 10 years@bleeves yes. But I want to use nautilus as a normal user. Security wise, opening nautilus is a bad practice.
-
Sibi about 10 years^ Opening nautilus as a root user is a bad practice.
-
bleeves about 10 yearsAgreed. I was asking if he had tried sudo to ascertain the reason it was locked, not recommending an answer.
-
Robert Cutajar about 8 yearsThere must be a permission to be granted somewhere... I would not accept solutions that require root access or modifying fstab. It is most likely with polkit setup and again, I wouldn't like to modify the polkit rules.
-
-
Enkouyami almost 9 yearsThis didn't work for exFAT.
-
Sibi about 8 yearsDo you know what polkit agent needs to be run on Unity or a gnome session in Ubuntu ?
-
Robert Cutajar about 8 yearsI'm not sure, try examine
apt-cache search polkit
. I've seen somewhere, but cannot remember, that gnome session possibly has the agent built in. The mate package might work for you. Seeman pkcheck
and try testing some admin action with the --allow-user-interaction parameter to see if you have things wired up.