Shaya: the DVD was the first disc from "The Complete Black Books". The second
disc also has similar weird permissions, but the third looks fine (all
read/execute perms on the directories, read perms on the files).
Martin: the "pmount -d" output is in my previous post. When there is an fstab
entry, I get the following:
$ ls -l /media/cdrom0
total 6
drwxr-xr-x 2 4294967295 4294967295 40 2004-10-06 08:14 AUDIO_TS
drwx------ 2 4294967295 4294967295 2588 2004-10-07 06:22 VIDEO_TS
$ grep hda /etc/mtab
/dev/hda /media/cdrom0 udf ro,noexec,nosuid,nodev,user=james 0 0
If I remove the fstab entry and mount the disc, I get the following:
$ ls -l /media/hda
total 6
drwxr-x--- 2 james james 40 2004-10-06 08:14 AUDIO_TS
drwx------ 2 james james 2588 2004-10-07 06:22 VIDEO_TS
$ grep hda /etc/mtab
/dev/hda /media/hda udf
ro,noexec,nosuid,nodev,sync,uid=1000,gid=1000,umask=007 0 0
(ie. all the -1 user/group ownerships have been converted to the given uid/gid).
If I manually mount with a umask of 0 (I assume you meant that rather than 0777
which would mask out all the permission bits) along with the other mount options
pmount is using, I get the same file permissions as in the first case (but due
to the files being owned by me, I can read them).
Given that the file permissions and ownership come from the disc itself, the
best solution might be an "ignore on-disc permissions" mount flag for UDF
filesystems. I wonder what Windows does with the file permissions on UDF discs?
Shaya: the DVD was the first disc from "The Complete Black Books". The second
disc also has similar weird permissions, but the third looks fine (all
read/execute perms on the directories, read perms on the files).
Martin: the "pmount -d" output is in my previous post. When there is an fstab nosuid, nodev,user= james 0 0
entry, I get the following:
$ ls -l /media/cdrom0
total 6
drwxr-xr-x 2 4294967295 4294967295 40 2004-10-06 08:14 AUDIO_TS
drwx------ 2 4294967295 4294967295 2588 2004-10-07 06:22 VIDEO_TS
$ grep hda /etc/mtab
/dev/hda /media/cdrom0 udf ro,noexec,
If I remove the fstab entry and mount the disc, I get the following: nosuid, nodev,sync, uid=1000, gid=1000, umask=007 0 0
$ ls -l /media/hda
total 6
drwxr-x--- 2 james james 40 2004-10-06 08:14 AUDIO_TS
drwx------ 2 james james 2588 2004-10-07 06:22 VIDEO_TS
$ grep hda /etc/mtab
/dev/hda /media/hda udf
ro,noexec,
(ie. all the -1 user/group ownerships have been converted to the given uid/gid).
If I manually mount with a umask of 0 (I assume you meant that rather than 0777
which would mask out all the permission bits) along with the other mount options
pmount is using, I get the same file permissions as in the first case (but due
to the files being owned by me, I can read them).
Given that the file permissions and ownership come from the disc itself, the
best solution might be an "ignore on-disc permissions" mount flag for UDF
filesystems. I wonder what Windows does with the file permissions on UDF discs?