ivman auto-mounts DVD with non-existent uid (-1)

Bug #237352 reported by Reuben Thomas
2
Affects Status Importance Assigned to Milestone
ivman (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: ivman

I have ivman installed with default settings. When I put a DVD in my drive, it is mounted with uid/gid -1, which means I can't access it. Further, the directory in question, /media/cdrom0, is not even executable by root.

The only thing I can find in the logs is:

Jun 4 14:56:28 canta NetworkManager: <debug> [1212587788.451836] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/volume_label_DVD_VIDEO_RECORDER').

which looks OK.

I tried setting VERBOSE=yes in /etc/default/ivman and restarting ivman, but that didn't seem to produce any extra output, at least in /var/log/*.

ProblemType: Bug
Architecture: i386
Date: Wed Jun 4 14:58:21 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: ath_hal
Package: ivman 0.6.14-3ubuntu1
PackageArchitecture: i386
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/sbin:/usr/sbin:/usr/local/epocemx/bin:/home/username/bin:/home/username/local/i686/bin:/home/username/local/bin:/home/username/.luarocks/bin:/home/username/Work/Adsensus/svn/nancy/trunk:/home/username/Work/Adsensus/svn/adsensus/trunk:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_GB.UTF-8
SourcePackage: ivman
Uname: Linux 2.6.24-18-generic i686

Tags: apport-bug
Revision history for this message
Reuben Thomas (rrt) wrote :
Revision history for this message
Reuben Thomas (rrt) wrote :

The problem seems to have arisen because the device (/dev/scd0) was mentioned in /etc/fstab, which was written by the Ubuntu installer. So perhaps this is rather an installer bug? Or maybe it's not a bug but a potential problem which needs to be documented?

Revision history for this message
Reuben Thomas (rrt) wrote :

Once I removed the /dev/scd0 line from /etc/fstab, automounted DVDs now have the correct user/group (either ivman.plugdev if I run ivman system-wide, or my uid and gid if I run it with ivman-launch) but the DVD is still mounted without execute permission on the directory, so I can't actually enter the directory.

Revision history for this message
Reuben Thomas (rrt) wrote :

As far as I can tell the actual mounting is done by pmount-hal, so there are now two problems, neither of which is necessarily ivman's, but I'd appreciate guidance on how to proceed:

1. The Ubuntu installer writes an entry for a fixed cdrom drive in /etc/fstab. This seems to prevent disks in the drive later being mounted with the correct uid/gid.

2. pmount-hal seems by default to mount DVDs without the execute bit set on the mount point directory, so they can't be read.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.