You are not logged in.
Hello there,
CDs, DVDs and USB sticks no longer automount after I upgrade to Gnome 3.6. I can see the DVD or USB on Nautilus as devices, but when I click it says "Unable to access "Disk"" "Not authorized to perform operation" . This works prior to the Gnome upgrade.
Does anyone have a solution for this problem.
systemd 195-2
polkit 0.107-4
polkit-gnome 0.105-1
nautilus 3.6.2-1
Thanks and regards
Last edited by art3011 (2012-11-11 00:57:06)
Offline
what kernel version are you using?
I had same trouble with linux-lts, but then I switched to linux.
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline
kernel version
uname -a
Linux julie 3.6.6-1-ARCH #1 SMP PREEMPT Mon Nov 5 11:57:22 CET 2012 x86_64 GNU/Linux
linux 3.6.6-1
Offline
show us the output of
dmesg | grep sr
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline
[art@julie ~]$ dmesg | grep sr
[ 0.000000] Command line: root=/dev/mapper/julie-root2 ro init=/usr/lib/systemd/systemd
[ 0.000000] Kernel command line: root=/dev/mapper/julie-root2 ro init=/usr/lib/systemd/systemd
[ 1.156018] sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[ 1.156206] sr 3:0:0:0: Attached scsi CD-ROM sr0
[ 3.377708] systemd[1]: Expecting device dev-mapper-julie\x2dsrv.device...
Offline
Looks like the Devices are recognized by the kernel.
Are you able to mout devices manually using a terminal ?
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline
I can only mount as root, but not as a normal user. As a normal user, I get this:
[art@julie ~]$ udisksctl mount -b /dev/sr0
Error mounting /dev/sr0: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorized: Not authorized to perform operation
[art@julie ~]$
Offline
Looks like permission issues.
see if this thread helps
https://bbs.archlinux.org/viewtopic.php?id=144801
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline
I finally solved this problem. I removed all customization rules on polkit, then then the system started automounting again. Not sure why, could be a bug in polkit. Somehow if I create a rule in /etc/polkit-1/rules.d with the following, thing got screwed up.
polkit.addRule(function(action, subject) {
if (action.id = "org.freedesktop.login1.suspend") {
return polkit.Result.NO;
}
});
polkit.addRule(function(action, subject) {
if (action.id = "org.freedesktop.login1.hibernate") {
return polkit.Result.NO;
}
});
For now I'll keep the default configuration that came with polkit.
Offline
Now how do I mark this topic as [Solved]. This is my first post. Don't know how to update the topic with a [Solved]
Offline
You can do that by editing your first post.
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline
Somehow if I create a rule in /etc/polkit-1/rules.d with the following, thing got screwed up.
polkit.addRule(function(action, subject) {
if (action.id = "org.freedesktop.login1.suspend") {
return polkit.Result.NO;
}
});
...
From what I see in the doc, the comparison sign is == not =
This is visible in the examples given in 'man polkit' and in this JavaScript syntax link
Because the two rules should not have prevented you from mounting; they forbid the 'suspend' and 'hibernate' commands to anyone even admin.
To keep authorisation to admin, which should be in group 'wheel', something like:
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.login1.suspend") {
if (subject.isInGroup("wheel")) {
return polkit.Result.AUTH_ADMIN;
} else {
return polkit.Result.NO;
}
}
});
should be better.
Another way without the 'wheel' group:
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.login1.suspend") {
if (subject.user == "root") {
return polkit.Result.YES;
} else {
return polkit.Result.NO;
}
}
});
Last edited by berbae (2012-11-11 15:42:13)
Offline