Thanks to everyone! It's great to come in in the morning to a pile
of solutions to a problem!
My original query:
> I mount a CD-ROM in the usual way:
> mount -t hsfs -r /dev/sr0 /cdrom
> with no errors. When I access the disk, I get NO EXECUTE PERMISSIONS on
> files that should have them. For instance, mounting the SUG CD-ROM
> 1992.1 (X11R5/GNU) and doing an "ls -l" on /cdrom/bin/x11 lists those
> files without execute permissions -- and I KNOW they used to be there!
> Can someone help me out here?
The answer is neatly given by Doug Neuhauser:
> Set the execute bits on /dev/sr0 (or /dev/srN for drive N). It is a
> "feature" of the hsfs that it picks up the attributes for the files on the
> hsfs volume from the driver file.
> eg: ls -l /dev/sr0
> br-xr-xr-x 1 root 18, 0 Feb 3 1992 /dev/sr0
Allan Schwartz also suggested setting the execute permissions of /dev/rsrN
That fixed it for me. My /dev/sr0 permissions were set for rw to all three groups
(why? who knows...).
Note that the permissions of the MOUNT POINT make no difference here. In fact,
the permissions change to reflect the permission on /dev/srN upon mounting, then
change back to their original mode upon unmounting. This confused me as I was
searching for a solution.
Thanks to the following respondents:
Doug Neuhauser (firstname.lastname@example.org)
Allan Schwartz (email@example.com)
Sid Shapiro (firstname.lastname@example.org)
Glenn Satchell (email@example.com)
David Bailey (D_BAILEY@CHCC.HARWELL.AEA-TECHNOLOGY.UK)
Rafi Sadowsky (firstname.lastname@example.org)
George D M Ross (email@example.com)
Donald McLachlan (firstname.lastname@example.org)
Hope College Department of Computer Science
email@example.com (BITNET: JIPPING@HOPE)
"Who is that big boy?"
-- my 2-year-old daughter upon visiting the
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:47 CDT