Re: Mounting DVD. What am I doing wrong?
On Sat, 01 May 2010 18:00:58 -0500, Ron Johnson wrote: On 05/01/2010 05:17 PM, Camaleón wrote: Interesting. What magic do I chant to make executable those files in udf partitions, since exec in the fstab options doesn't seem to work? Does this happen with all DVD/CDs you insert or just only with a few ones? Apparently only on disks burned on a Toshiba DVR. There is an open bug report for Ubuntu where the reporter was having a similar situation: *** Users do not have permission to open files in DVDs burnt in a Mac https://bugs.launchpad.net/ubuntu/+source/hal/+bug/72872 *** The media was burnt in a Mac (yours on a PVR) but in both cases the permissions on the media are wrongly set and impedes the user to access the files in a usual way. Read comment #18 (it comes from a Debian user). Maybe it's worth to make a report in BTS. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2010.05.02.09.15...@gmail.com
Re: Mounting DVD. What am I doing wrong?
On 05/02/2010 04:15 AM, Camaleón wrote: On Sat, 01 May 2010 18:00:58 -0500, Ron Johnson wrote: On 05/01/2010 05:17 PM, Camaleón wrote: Interesting. What magic do I chant to make executable those files in udf partitions, since exec in the fstab options doesn't seem to work? Does this happen with all DVD/CDs you insert or just only with a few ones? Apparently only on disks burned on a Toshiba DVR. There is an open bug report for Ubuntu where the reporter was having a similar situation: *** Users do not have permission to open files in DVDs burnt in a Mac https://bugs.launchpad.net/ubuntu/+source/hal/+bug/72872 *** The media was burnt in a Mac (yours on a PVR) but in both cases the permissions on the media are wrongly set and impedes the user to access the files in a usual way. https://bugs.launchpad.net/ubuntu/+source/hal/+bug/72872/comments/24 Read comment #18 (it comes from a Debian user). Maybe it's worth to make a report in BTS. There are enough bugs against the kernel already... -- Dissent is patriotic, remember? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bddaa77.6000...@cox.net
Mounting DVD. What am I doing wrong?
(This is vaguely similar to the recent USB key accepts data only as root thread.) See here when I mount a DVD: r...@haggis:~# mount -v /media/cdrom0 mount: block device /dev/sr0 is write-protected, mounting read-only /dev/sr0 on /media/cdrom0 type udf (ro,noexec,nosuid,nodev,uid=1000,gid=1007) r...@haggis:~# r...@haggis:~# ls -aFl /media/cdrom0 total 8 dr--r--r-- 3 me all_ages 88 Mar 15 2008 ./ drwxr-xr-x 4 root root 4096 Apr 30 14:16 ../ dr--r--r-- 2 me all_ages 456 Mar 15 2008 VIDEO_TS/ Note that I mount it as root, and the user:group is me:all_ages, as it should be. However, when I ls it from user me, there's Permission denied and weird protections/ownwership when I look at it from user me, even though /media is world readable. m...@haggis:~$ ls -aFl /media total 14 drwxr-xr-x 4 root root 4096 Apr 30 14:16 ./ drwxr-xr-x 24 root root 4096 Apr 22 15:23 ../ lrwxrwxrwx 1 root root6 Apr 22 13:05 cdrom - cdrom0/ dr--r--r-- 3 me all_ages 88 Mar 15 2008 cdrom0/ -rw-r--r-- 1 root root0 Apr 30 14:16 .hal-mtab -rw--- 1 root root0 Apr 25 14:34 .hal-mtab-lock drwxr-xr-x 2 root root 4096 Apr 22 16:20 thumb/ m...@haggis:~$ ls -aFl /media/cdrom0 ls: cannot access /media/cdrom0/.: Permission denied ls: cannot access /media/cdrom0/..: Permission denied ls: cannot access /media/cdrom0/VIDEO_TS: Permission denied total 0 d? ? ? ? ?? ./ d? ? ? ? ?? ../ ?? ? ? ? ?? VIDEO_TS Any productive thoughts? -- Dissent is patriotic, remember? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bdc7164.4010...@cox.net
Re: Mounting DVD. What am I doing wrong?
On Sat, 01 May 2010 13:22:28 -0500, Ron Johnson wrote: See here when I mount a DVD: r...@haggis:~# mount -v /media/cdrom0 mount: block device /dev/sr0 is write-protected, mounting read-only /dev/sr0 on /media/cdrom0 type udf (ro,noexec,nosuid,nodev,uid=1000,gid=1007) r...@haggis:~# r...@haggis:~# ls -aFl /media/cdrom0 total 8 dr--r--r-- 3 me all_ages 88 Mar 15 2008 ./ drwxr-xr-x 4 root root 4096 Apr 30 14:16 ../ dr--r--r-- 2 me all_ages 456 Mar 15 2008 VIDEO_TS/ ^^ ^^ ^ I think that perms are wrong. Look: s...@stt008:~$ ls -aFl /media/cdrom0 total 6 dr-xr-xr-x 2 4294967295 4294967295 136 jul 3 2000 ./ drwxr-xr-x 4 root root 208 may 1 10:25 ../ dr-xr-xr-x 3 4294967295 4294967295 40 jul 3 2000 AUDIO_TS/ dr-xr-xr-x 3 4294967295 4294967295 872 jul 3 2000 VIDEO_TS/ ^^ ^^ ^ Your perms are missing the x flag for the owner so no access is allowed. I recall a similar situation in another mailing list... Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2010.05.01.19.03...@gmail.com
Re: Mounting DVD. What am I doing wrong?
On 05/01/2010 02:03 PM, Camaleón wrote: On Sat, 01 May 2010 13:22:28 -0500, Ron Johnson wrote: See here when I mount a DVD: r...@haggis:~# mount -v /media/cdrom0 mount: block device /dev/sr0 is write-protected, mounting read-only /dev/sr0 on /media/cdrom0 type udf (ro,noexec,nosuid,nodev,uid=1000,gid=1007) r...@haggis:~# r...@haggis:~# ls -aFl /media/cdrom0 total 8 dr--r--r-- 3 me all_ages 88 Mar 15 2008 ./ drwxr-xr-x 4 root root 4096 Apr 30 14:16 ../ dr--r--r-- 2 me all_ages 456 Mar 15 2008 VIDEO_TS/ ^^ ^^ ^ I think that perms are wrong. Look: s...@stt008:~$ ls -aFl /media/cdrom0 total 6 dr-xr-xr-x 2 4294967295 4294967295 136 jul 3 2000 ./ drwxr-xr-x 4 root root 208 may 1 10:25 ../ dr-xr-xr-x 3 4294967295 4294967295 40 jul 3 2000 AUDIO_TS/ dr-xr-xr-x 3 4294967295 4294967295 872 jul 3 2000 VIDEO_TS/ ^^ ^^ ^ Before adding gid and uid to /etc/fstab, 4294967295 is what I got as user:group. Your perms are missing the x flag for the owner so no access is allowed. I recall a similar situation in another mailing list... I don't want to *execute* the files, I want to *read* them. -- Dissent is patriotic, remember? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bdc7c25.7050...@cox.net
Re: Mounting DVD. What am I doing wrong?
On Sat, 01 May 2010 14:08:21 -0500, Ron Johnson wrote: On 05/01/2010 02:03 PM, Camaleón wrote: Your perms are missing the x flag for the owner so no access is allowed. I recall a similar situation in another mailing list... I don't want to *execute* the files, I want to *read* them. Don't you need exec perms for listing directories? ;-) *** s...@stt008:~$ mkdir Desktop/test s...@stt008:~$ ls -l Desktop | grep test drwxr-xr-x 2 sm01 sm0148 may 1 21:14 test s...@stt008:~$ ls -aFl Desktop/test total 1 drwxr-xr-x 2 sm01 sm01 48 may 1 21:14 ./ drwxr-xr-x 10 sm01 sm01 752 may 1 21:19 ../ s...@stt008:~$ chmod -x Desktop/test s...@stt008:~$ ls -l Desktop | grep test drw-r--r-- 2 sm01 sm0148 may 1 21:14 test s...@stt008:~$ ls -aFl Desktop/test ls: no se puede acceder a Desktop/test/.: Permiso denegado ls: no se puede acceder a Desktop/test/..: Permiso denegado total 0 ?? ? ? ? ?? . ?? ? ? ? ?? .. *** Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2010.05.01.19.25...@gmail.com
Re: Mounting DVD. What am I doing wrong?
On May 1, 2010, at 3:25 PM, Camaleón wrote: On Sat, 01 May 2010 14:08:21 -0500, Ron Johnson wrote: On 05/01/2010 02:03 PM, Camaleón wrote: Your perms are missing the x flag for the owner so no access is allowed. I recall a similar situation in another mailing list... I don't want to *execute* the files, I want to *read* them. Don't you need exec perms for listing directories? ;-) *** s...@stt008:~$ mkdir Desktop/test s...@stt008:~$ ls -l Desktop | grep test drwxr-xr-x 2 sm01 sm0148 may 1 21:14 test s...@stt008:~$ ls -aFl Desktop/test total 1 drwxr-xr-x 2 sm01 sm01 48 may 1 21:14 ./ drwxr-xr-x 10 sm01 sm01 752 may 1 21:19 ../ s...@stt008:~$ chmod -x Desktop/test s...@stt008:~$ ls -l Desktop | grep test drw-r--r-- 2 sm01 sm0148 may 1 21:14 test s...@stt008:~$ ls -aFl Desktop/test ls: no se puede acceder a Desktop/test/.: Permiso denegado ls: no se puede acceder a Desktop/test/..: Permiso denegado total 0 ?? ? ? ? ?? . ?? ? ? ? ?? .. *** Actually, the x permission on a directory means search (i.e. find a file in) the directory. If you already know the name (or have guessed it) of a file in the directory and you have --x (no-read, no- write, yes-search) on the directory and 'r--' (read-only) on the file, you can read the file even though you can't read the directory. That's a feature, and it dates back to early days in UNIX. What you are seeing is a corner case caused by that feature. If you have r-- on the directory you can read it, but you can't find any of the files whose names you can read. So you can't get those files permission bits or mod-time's etc. So ls fails in the bizarre way you are seeing. So you can read the directory without the x bit, but it doesn't do you a fat load of good. Enjoy! Rick -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/c6a349ae-e746-49a0-a06c-ad2ae7c8d...@pobox.com
Re: Mounting DVD. What am I doing wrong?
On 05/01/2010 02:57 PM, Rick Thomas wrote: [snip] Actually, the x permission on a directory means search (i.e. find a file in) the directory. If you already know the name (or have guessed it) of a file in the directory and you have --x (no-read, no-write, yes-search) on the directory and 'r--' (read-only) on the file, you can read the file even though you can't read the directory. That's a feature, and it dates back to early days in UNIX. What you are seeing is a corner case caused by that feature. If you have r-- on the directory you can read it, but you can't find any of the files whose names you can read. So you can't get those files permission bits or mod-time's etc. So ls fails in the bizarre way you are seeing. So you can read the directory without the x bit, but it doesn't do you a fat load of good. Interesting. What magic do I chant to make executable those files in udf partitions, since exec in the fstab options doesn't seem to work? # tail -n1 /etc/fstab /dev/scd0 /media/cdrom0 udf,iso9660 \ user,uid=1000,gid=1007,noauto,exec \ 0 0 # mount -v /media/cdrom0 mount: block device /dev/sr0 is write-protected, mounting read-only /dev/sr0 on /media/cdrom0 type udf (ro,nosuid,nodev,uid=1000,gid=1007) r...@haggis:~# dir /media/cdrom0 total 10 dr--r--r-- 3 me all_ages 88 2008-04-14 06:41:29 ./ drwxr-xr-x 4 root root 4096 2010-04-30 14:16:34 ../ dr--r--r-- 2 me all_ages 2068 2008-04-14 06:41:29 VIDEO_TS/ -- Dissent is patriotic, remember? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bdc915a.4090...@cox.net
Re: Mounting DVD. What am I doing wrong?
On Sat, 01 May 2010 15:38:50 -0500, Ron Johnson wrote: On 05/01/2010 02:57 PM, Rick Thomas wrote: [snip] (...) So you can read the directory without the x bit, but it doesn't do you a fat load of good. Interesting. What magic do I chant to make executable those files in udf partitions, since exec in the fstab options doesn't seem to work? Does this happen with all DVD/CDs you insert or just only with a few ones? # tail -n1 /etc/fstab /dev/scd0 /media/cdrom0 udf,iso9660 \ user,uid=1000,gid=1007,noauto,exec \ 0 0 This is my Lenny entry for optical media: s...@stt008:~$ cat /etc/fstab | grep cd /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 r...@haggis:~# dir /media/cdrom0 total 10 dr--r--r-- 3 me all_ages 88 2008-04-14 06:41:29 ./ drwxr-xr-x 4 root root 4096 2010-04-30 14:16:34 ../ dr--r--r-- 2 me all_ages 2068 2008-04-14 06:41:29 VIDEO_TS/ And this this what I get with no media device in the tray: s...@stt008:~$ ls -aFl /media/cdrom0 total 0 drwxr-xr-x 2 root root 48 nov 14 16:05 ./ drwxr-xr-x 4 root root 208 may 1 10:25 ../ Dunno what kind of magic is needed to summon to get the right permissions on the /media/cdrom0 mount point. I am using GNOME so this is handle by hal/udev mixtery (the x was not a typo, is just I don't fully understand the mix of mistery that is behing hal/udev rules. Hopefully for me, it is working as expected). Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2010.05.01.22.17...@gmail.com
Re: Mounting DVD. What am I doing wrong?
On 05/01/2010 05:17 PM, Camaleón wrote: On Sat, 01 May 2010 15:38:50 -0500, Ron Johnson wrote: On 05/01/2010 02:57 PM, Rick Thomas wrote: [snip] (...) So you can read the directory without the x bit, but it doesn't do you a fat load of good. Interesting. What magic do I chant to make executable those files in udf partitions, since exec in the fstab options doesn't seem to work? Does this happen with all DVD/CDs you insert or just only with a few ones? Apparently only on disks burned on a Toshiba DVR. -- Dissent is patriotic, remember? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bdcb2aa.1000...@cox.net
Re: Mounting DVD. What am I doing wrong?
Your perms are missing the x flag for the owner so no access is allowed. I recall a similar situation in another mailing list... I don't want to *execute* the files, I want to *read* them. You already got the answer. Directories have to have x flag to let user in. I assume your dvd was written with original permissions. Try out to have it on hdd and make a little experiment. Change flags on/off. That way you will learn what works and what does not. Best regards Zoran -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100502043645.ga...@faust.net