Bug#767233: udisks2: Not mounting with user permissions (even vfat!)
Package: udisks2 Version: 2.1.6-2 Followup-For: Bug #767233 Dear Maintainer, Just noticed this problem also. I connected a USB stick to my computer to edit some video files. It automounted fine but as root and readonly premissions for users. -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages udisks2 depends on: ii dbus 1.10.2-1 ii libacl12.2.52-2 ii libatasmart4 0.19-3 ii libc6 2.19-22 ii libglib2.0-0 2.46.1-2 ii libgudev-1.0-0 230-2 ii libpam-systemd 227-2 ii libpolkit-agent-1-00.112-2 ii libpolkit-gobject-1-0 0.112-2 ii libsystemd0227-2 ii libudisks2-0 2.1.6-2 ii parted 3.2-9 ii udev 227-2 Versions of packages udisks2 recommends: ii dosfstools 3.0.28-2 ii eject2.1.5+deb1+cvs20081104-13.1 ii gdisk1.0.0-3+b1 ii ntfs-3g 1:2015.3.14AR.1-1 ii policykit-1 0.112-2 Versions of packages udisks2 suggests: pn btrfs-tools ii cryptsetup-bin 2:1.6.6-5 pn exfat-utils pn mdadm pn reiserfsprogs pn xfsprogs -- no debconf information
Bug#767233: udisks2: Not mounting with user permissions (even vfat!)
Could it be caused by entries in /etc/fstab as suggested here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740190 ? I had the same problem on my testing/unstable box, I'm reasonably sure that it wasn't me who added to /etc/fstab the two lines that were causing the same symptoms /dev/sdb1 /media/usb0 autorw,user,noauto 0 0 /dev/sdb2 /media/usb1 autorw,user,noauto 0 0 but I have to admit that I do now know which package did that). -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#767233: udisks2: Not mounting with user permissions (even vfat!)
Hi, I had the same issue here and it was caused by /etc/fstab entries: if a relevant fstab entry is used, udisks2 mount the filesystem using it instead of using its default behaviour. Here were the relevant fstab entries: /dev/sdb1 /media/usb0 autorw,user,noauto 0 0 /dev/sdb2 /media/usb1 autorw,user,noauto 0 0 With the fstab entries: $ udisksctl mount -b /dev/sdb1 ls -l /media/usb0 udisksctl unmount -b /dev/sdb1 Mounted /dev/sdb1 at /media/usb0. total 64 drwxr-xr-x 9 root root 32768 mai 12 08:19 data Unmounted /dev/sdb1 Without the fstab entries: $ udisksctl mount -b /dev/sdb1 ls -l /media/foo/1C08-1B0C udisksctl unmount -b /dev/sdb1 Mounted /dev/sdb1 at /media/foo/1C08-1B0C. total 64 drwx-- 9 foo foo 32768 mai 12 08:19 data Unmounted /dev/sdb1. -- Gabriel -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#767233: udisks2: Not mounting with user permissions (even vfat!)
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@trozko:~$ udisksctl mount -b /dev/sdb1 Mounted /dev/sdb1 at /media/usb0. pierpaolo@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 root8387428 ott 3 17:01 ZZZ I tried to add a polkit rule on localauthority: pierpaolo@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 libacl12.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-00.105-7 ii libpolkit-gobject-1-0 0.105-7 ii libsystemd0215-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 eject2.1.5+deb1+cvs20081104-13.1 ii gdisk0.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 xfsprogsnone -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org