[lug] mounting cdrom

D. Stimits stimits at idcomm.com
Fri Nov 24 10:26:11 MST 2000


Hugh Brown wrote:
> 
> I know it isn't the device because I can do a manual mount (i.e. not via
> fstab) and it works, but when I do mounts that query fstab it doesn't.
> 
> In any event, /cdrw has perms 0755
> 
> Hugh
> 
> "D. Stimits" wrote:
> >
> > Hugh Brown wrote:
> > >
> > > I am trying to get my cdrom to allow exec so I can run an install script
> > > on the cdrom.  I unmounted the drive, changed fstab to
> > >
> > > /dev/hdd                /cdrw             iso9660 exec,noauto,user,ro 0
> > > 0

I found in the mount man page something on option "user":
user   Allow  an ordinary user to mount the file system.  This option
implies the options
       noexec, nosuid, and nodev (unless overridden by  subsequent 
options,  as  in  the
       option line user,exec,dev,suid).

This apparently says that your user option is taking precedence over the
exec option, and turning it noexec. I haven't tried, but the wording
suggests that if your exec follows user, rather than preceding it, this
won't happen, and exec will work.

> > >
> > > it used to be (/dev/hdd  /cdrw   iso9660 noauto,user,ro 0 0).
> > >
> > > When I remount I still get this:
> > >
> > > /dev/hdd on /cdrw type iso9660 (ro,noexec,nosuid,nodev)
> > >
> > > If I do a mount /dev/hdd -t iso9660 -o exec,ro /cdrw  then it does what
> > > I want it to.
> > >
> > > I'm assuming that some sort of security has been setup that won't allow
> > > a cd to be mounted that allows executable content, but when I am root, I
> > > should like to override it.
> > >
> > > Ideas?
> > >
> > > Hugh
> >
> > One thing to check before assuming it is the device that does not allow
> > exec is that the mount point itself must be executable, and all of its
> > parents. So if you mount on /cdrw/, then be sure that /cdrw is chmod
> > with +rwx for whichever user/group is relevant.
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug




More information about the LUG mailing list