Bug#506074: pmount: mounts device with wrong uid and gid
I experimented a bit more and the bug was indeed caused by pmount and gnome-volume-manager deferring the mounting process to mount. Then mount was blindly following the uid and gid stored on the DVDs. Once the /etc/fstab line is removed, pmount and g-v-m take over and they forcibly set the uid and gid of the files, hence hiding the flaws of the DVDs. There is still a bug/feature somewhere else (in debian-installer perhaps?), as the /etc/fstab line was added by software. (I would never have called a mount point cdrom_0_ and added symlinks all over the place.) But that is a story for another time and report. Sorry for the noise, I should have been a bit more careful. Best regards, Guillaume -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#506074: pmount: mounts device with wrong uid and gid
Hello again, On Tue, Nov 18, 2008 at 8:28 AM, Guillaume Melquiond [EMAIL PROTECTED] wrote: As a consequence, this also makes mounting DVDs from a user interface like gnome/nautilus completely impossible, since it relies on pmount. Hmmm... Are you sure about that ? As far as I can see, only the *stable* (etch) gnome-volume-manager depends on pmount, not the lenny/sid one. Cheers, Vincent -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#506074: pmount: mounts device with wrong uid and gid
Hello, On Tue, Nov 18, 2008 at 8:28 AM, Guillaume Melquiond [EMAIL PROTECTED] wrote: When using pmount /media/cdrom0 to mount a DVD with a regular user (uid = gid = 1000), the device is actually mounted with uid=501 and gid=20. User 501 does not exist at all on the system; not sure where it comes from. Group 20 is the smallest gid the regular users are registered to, but this may be a coincidence. Hmmm... Could you elaborate a bit more ? I don't see how the command pmount /media/cdrom0 could work (you need to pass the device, not the mount point, as mentioned in pmount(1)). Could you post your /etc/fstab, please ? Could you post the output of pmount -d /media/cdrom0 Cheers, Vincent -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#506074: pmount: mounts device with wrong uid and gid
Le mardi 18 novembre 2008 à 09:14 +0100, Vincent Fourmond a écrit : Hello again, On Tue, Nov 18, 2008 at 8:28 AM, Guillaume Melquiond wrote: As a consequence, this also makes mounting DVDs from a user interface like gnome/nautilus completely impossible, since it relies on pmount. Hmmm... Are you sure about that ? As far as I can see, only the *stable* (etch) gnome-volume-manager depends on pmount, not the lenny/sid one. No, I'm not sure whether nautilus calls pmount or not. What I am sure is that, when I ask nautilus to mount a DVD, it mounts it with uid=501 and gid=20, which leads me to believe nautilus calls pmount. Hmmm... Could you elaborate a bit more ? I don't see how the command pmount /media/cdrom0 could work (you need to pass the device, not the mount point, as mentioned in pmount(1)). Could you post your /etc/fstab, please ? Here is the relevant line of my /etc/fstab: /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 Could you post the output of pmount -d /media/cdrom0 Unfortunately I don't have any DVD at hand here, I will try later today. But anyway, here is the output for a CD, for which pmount happens to work properly. $ pmount -d /media/cdrom0 resolved mount point /media/cdrom0 to device /dev/scd0 resolved /dev/scd0 to device /dev/scd0 Checking for device '/dev/scd0' in '/etc/fstab' - found as '/dev/scd0'device /dev/scd0 handled by fstab, calling mount mount: block device /dev/scd0 is write-protected, mounting read-only Best regards, Guillaume -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#506074: pmount: mounts device with wrong uid and gid
serverity 506074 normal thanks Hello, On Tue, Nov 18, 2008 at 10:01 AM, Guillaume Melquiond [EMAIL PROTECTED] wrote: No, I'm not sure whether nautilus calls pmount or not. What I am sure is that, when I ask nautilus to mount a DVD, it mounts it with uid=501 and gid=20, which leads me to believe nautilus calls pmount. ??? If you have gnome-volume-manager = 2.22.1-1 (which is probably the case according to your pmount version), nautilus shouldn't use pmount. Hmmm... Could you elaborate a bit more ? I don't see how the command pmount /media/cdrom0 could work (you need to pass the device, not the mount point, as mentioned in pmount(1)). Could you post your /etc/fstab, please ? Here is the relevant line of my /etc/fstab: /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 Could you post the output of pmount -d /media/cdrom0 Unfortunately I don't have any DVD at hand here, I will try later today. But anyway, here is the output for a CD, for which pmount happens to work properly. $ pmount -d /media/cdrom0 resolved mount point /media/cdrom0 to device /dev/scd0 resolved /dev/scd0 to device /dev/scd0 Checking for device '/dev/scd0' in '/etc/fstab' - found as '/dev/scd0'device /dev/scd0 handled by fstab, calling mount mount: block device /dev/scd0 is write-protected, mounting read-only This really does not look like a pmount problem: all pmount is doing here is calling mount without privileges. I'm waiting for a debug output in the case it fails, but in the meantime, I'm downgrading this bug, as it might not be a pmount bug at all... Now that I think about it, by any chance, did you not burn the DVD with the genisoimage -R option rather than -r ? (or you didn't burn the DVD at all) ? And when you say it is uid=501, gid=20, is that ls telling you that, or mount ? (that is a big difference). If only ls says it, and not mount, your DVD was not burnt properly. In any case, it should be readable by all, shouldn't it ? If not, then it really was burnt crappily... Cheers, Vincent -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#506074: pmount: mounts device with wrong uid and gid
severity 506074 normal thanks Sorry for the typo ;-)... -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#506074: pmount: mounts device with wrong uid and gid
Le mardi 18 novembre 2008 à 10:14 +0100, Vincent Fourmond a écrit : Now that I think about it, by any chance, did you not burn the DVD with the genisoimage -R option rather than -r ? (or you didn't burn the DVD at all) ? And when you say it is uid=501, gid=20, is that ls telling you that, or mount ? (that is a big difference). If only ls says it, and not mount, your DVD was not burnt properly. In any case, it should be readable by all, shouldn't it ? If not, then it really was burnt crappily... I have not burnt this DVD. As for mount, it does not say anything, but I have yet to test again with the DVD. Note that this is a DVD with an UDF file system, so I don't know how relevant genisoimage may be. That being said, your mail prompted me to look whether UDF has a similar feature. It does: The UDF superblock contains a uid and a gid which applies to all the files of the DVD. One has to use the option uid=forget when mounting a DVD to avoid that. I will report later whether or not it fixes the issue. Guillaume -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#506074: pmount: mounts device with wrong uid and gid
Subject: pmount: mounts device with wrong uid and gid Package: pmount Version: 0.9.18-2 Severity: grave Justification: renders package unusable When using pmount /media/cdrom0 to mount a DVD with a regular user (uid = gid = 1000), the device is actually mounted with uid=501 and gid=20. User 501 does not exist at all on the system; not sure where it comes from. Group 20 is the smallest gid the regular users are registered to, but this may be a coincidence. As a consequence, this also makes mounting DVDs from a user interface like gnome/nautilus completely impossible, since it relies on pmount. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages pmount depends on: ii libblkid1 1.41.3-1 block device id library ii libc6 2.7-15 GNU C Library: Shared libraries ii libdbus-1-3 1.2.1-4simple interprocess messaging syst ii libhal-storage1 0.5.11-6 Hardware Abstraction Layer - share ii libhal1 0.5.11-6 Hardware Abstraction Layer - share ii libsysfs2 2.1.0-5interface library to sysfs pmount recommends no packages. Versions of packages pmount suggests: pn cryptsetupnone (no description available) ii hal 0.5.11-6 Hardware Abstraction Layer -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]