[Pkg-utopia-maintainers] Bug#767233: udisks2: Not mounting with user permissions (even vfat!)
Pier Paolo
pierpaolo.franco at gmail.com
Wed Oct 29 13:53:10 UTC 2014
Package: udisks2
Version: 2.1.3-5
Severity: important
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
brand new install of Jessie with Gnome 3 desktop from d-i.
I'm used to the prior version of udisks, and expecting: 1) insert a vfat usb
stick, 2) see her mounted on /media/[VolumeName]/, 3) with right users
permissions to write even on the root of the partition. This used to work even
with internal ext partitions provided non-root user writable folders.
Now I only get any (vfat) usb stick mounted on /media/usb0/ (not respecting
VolumeName) and only root permissions on root and all folders.
This as per standard gnome 3 gui (nautilus thru gvfs i think),
as per:
pierpaolo at trozko:~$ udisksctl mount -b /dev/sdb1
Mounted /dev/sdb1 at /media/usb0.
pierpaolo at trozko:~$ ls -l /media/usb0/
totale 1662984
drwxr-xr-x 2 root root 8192 ott 28 16:26 XXX
drwxr-xr-x 4 root root 8192 giu 4 22:27 YYY
-rwxr-xr-x 1 root root 8387428 ott 3 17:01 ZZZ
....
I tried to add a polkit rule on localauthority:
pierpaolo at trozko:~$ cat /etc/polkit-1/localauthority/10-udisks2.rules
// seen /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy
// adapted from /usr/share/polkit-1/rules.d/gnome-control-center.rules
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount") &&
subject.local &&
subject.active &&
subject.isInGroup ("plugdev")) {
return polkit.Result.YES;
}
Anything seem to work as expected.
-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to it_IT.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages udisks2 depends on:
ii dbus 1.8.8-2
ii libacl1 2.2.52-2
ii libatasmart4 0.19-3
ii libc6 2.19-12
ii libglib2.0-0 2.42.0-2
ii libgudev-1.0-0 215-5+b1
ii libpam-systemd 215-5+b1
ii libpolkit-agent-1-0 0.105-7
ii libpolkit-gobject-1-0 0.105-7
ii libsystemd0 215-5+b1
ii libudisks2-0 2.1.3-5
ii parted 3.2-6
ii udev 215-5+b1
Versions of packages udisks2 recommends:
ii dosfstools 3.0.26-4
ii eject 2.1.5+deb1+cvs20081104-13.1
ii gdisk 0.8.10-1
ii ntfs-3g 1:2014.2.15AR.2-1
ii policykit-1 0.105-7
Versions of packages udisks2 suggests:
pn btrfs-tools <none>
ii cryptsetup-bin 2:1.6.6-2
pn exfat-utils <none>
pn mdadm <none>
pn reiserfsprogs <none>
pn xfsprogs <none>
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list