Comment 5 for bug 1064195

Revision history for this message
In , Wbauer (wbauer) wrote :

Created attachment 78381
output of 'udisksctl dump'

When I try to mount a floppy disk (formatted with FAT12) in the internal floppy drive using "udisksctl mount -b /dev/fd0" it gets mounted as root instead of the logged in user. As a consequence I don't have write access.

wolfi@amiga:~> udisksctl mount -b /dev/fd0
Mounted /dev/fd0 at /run/media/wolfi/disk.
wolfi@amiga:~> ls -la /run/media/wolfi/disk
insgesamt 86
drwxr-xr-x 2 root root 3584 1. Jän 1970 .
drwxr-x---+ 3 root root 60 23. Apr 18:07 ..
-rwxr-xr-x 1 root root 83968 16. Okt 2001 slides1.ppt

On the other hand, when I try to mount an USB stick (formatted with FAT32) it does get mounted as the logged in user.

wolfi@amiga:~> udisksctl mount -b /dev/sdc1
Mounted /dev/sdc1 at /run/media/wolfi/Transcend.
wolfi@amiga:~> ls -la /run/media/wolfi/Transcend
insgesamt 16
drwx------ 3 wolfi users 8192 1. Jän 1970 .
drwxr-x---+ 4 root root 80 23. Apr 18:08 ..
drwx------ 18 wolfi users 8192 27. Jän 23:45 Instrumentelle Analytische Chemie Protokolle

I would expect that the floppy disk is also mounted as the logged in user.

The same behaviour occurs with udisks-2.0.0 as shipped with openSUSE 12.3 and a self-compiled udisk-2.1.0.
I also tried an Ubuntu 13.04 LiveCD with the same result, so it's not openSUSE specific.

wolfi@amiga:~> cat /etc/fstab
/dev/sdb2 swap swap defaults 0 0
/dev/sda1 / reiserfs acl,user_xattr 1 1
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs auto,busgid=110,busmode=0775,devgid=110,devmode=0664 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/sdb1 /windows/C ntfs-3g defaults 0 0

wolfi@amiga:~> rpm -q udisks2 gvfs libatasmart4
udisks2-2.0.0-5.4.1.x86_64
gvfs-1.14.2-2.1.2.x86_64
libatasmart4-0.19-2.1.1.x86_64