fstab-based mounts not done as calling user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udisks |
Confirmed
|
Medium
|
|||
udisks2 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
I like to keep my cdrom mountpoint stable, as /media/cdrom .. in previous Ubuntu versions this was done by adding the following (or similar) to /etc/fstab:
/dev/cdrom /media/cdrom udf,iso9660 ro,user,
In 14.04, the CD-ROM gets correctly mounted on /media/cdrom, but I cannot then unmount it from the command line:
$ umount /media/cdrom
umount: only root can unmount /dev/cdrom from /media/cdrom
This appears to be the upstream bug:
https:/
There is a patch included in that report which I have not yet tried.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: udisks2 2.1.3-1
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Apr 28 20:04:49 2014
InstallationDate: Installed on 2014-04-20 (8 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: udisks2
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/20/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.0.15
dmi.board.name: 0K216C
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.chassis.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: Inspiron 530
dmi.sys.vendor: Dell Inc.
Changed in udisks: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in udisks2 (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
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 wolfi/disk. wolfi/disk
Mounted /dev/fd0 at /run/media/
wolfi@amiga:~> ls -la /run/media/
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 wolfi/Transcend . wolfi/Transcend
Mounted /dev/sdc1 at /run/media/
wolfi@amiga:~> ls -la /run/media/
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 110,busmode= 0775,devgid= 110,devmode= 0664 0 0
/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=
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 2.0.0-5. 4.1.x86_ 64 14.2-2. 1.2.x86_ 64 0.19-2. 1.1.x86_ 64
udisks2-
gvfs-1.
libatasmart4-