You are not logged in.
Pages: 1
Hello,
This started with just trying to mount disks from Thunar without a password, but it seems to have gone beyond that. I'm still getting the admin password prompt both from Thunar and from udisksctl.
I can mount inserted USB drives. However, I'm trying to mount internal drives now, and I'd rather not mount them in fstab. One is ext4 and the other is ntfs - neither will mount.
I log in via the tty + startxfce4 if that has anything to do with it.
Am I missing something in the configs? The polkit rule is pretty much copy & pasted from man polkit. udev rules are a copy/paste from places on the web, but it's really only a second priority. I just thought it was curious that they didn't seem to have any effect either.
Configs:
http://pastie.org/private/whv9cbqkmc6nsnn2kncw
Pic of prompt + action detail:
http://i.imgur.com/WgU5Hbz.png
Groups:
$ groups
wheel audio storage users
Perms:
$ ls -l /etc/polkit-1/rules.d/
-rw-r--r-- 1 root root 326 Oct 25 2015 50-default.rules
-rw-r--r-- 1 root root 202 Jun 9 19:46 99-udisks.rules
$ ls -l /etc/udev/rules.d/
-rw-r--r-- 1 root root 422 Jun 9 19:46 10-local.rules
I'm an experienced Linux user, but it's been a while since I used a distro like Arch so I'm not too clear on the polkit syntax (which I believe they changed in the last year or so?).
If there's any links I've missed or more info I can share, let me know. But I'm pretty sure I've combed through most of the internet in the past hours
Last edited by ryclik (2016-06-13 23:35:13)
Offline
So, new development. I totally glazed over the errors that were being logged...
Jun 13 18:15:13 localhost polkitd[1380]: /etc/polkit-1/rules.d/15-udisks.rules:7: SyntaxError: missing ) after argument list
Jun 13 18:15:13 localhost polkitd[1380]: Error compiling script /etc/polkit-1/rules.d/15-udisks.rules
But there seems to be closing )'s in all the correct places. I directly copied the example from man polkit. Any thoughts?
polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop.udisks2.") == 0 &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
}
});
Edit Solved:
Turns out I'm just dumb and I shouldn't trust man pages
The code has an extra }.
Fixed:
polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop.udisks2.") == 0 &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
Last edited by ryclik (2016-06-13 23:34:43)
Offline
Pages: 1