Re: Mounting DVD. What am I doing wrong?
On 05/01/2010 02:57 PM, Rick Thomas wrote:
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
# tail -n1 /etc/fstab
/dev/scd0 /media/cdrom0 udf,iso9660 \
# mount -v /media/cdrom0
mount: block device /dev/sr0 is write-protected, mounting read-only
/dev/sr0 on /media/cdrom0 type udf
root@haggis:~# dir /media/cdrom0
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?