Unable to Automount ISO image unless automount is running in foreground!
I've been battling this for a week or so and am starting to get really ()&£&&$"!(* with it.
What am I trying to do:
Use automount to mount ISO's on demand - kinda like a CD/DVD jukebox. I got the idea from this article http://www.linuxjournal.com/article/5639.
Stick .iso files in a directory (/iso/images/test.iso, etc.)
update autofs files to mount as iso9660, readonly, etc...
I get a "permissions denied" message for the .iso image in /var/log/messages when automount is running in the background. It works when automount is run in foreground with -f.
I'm running CentOS 2.6.18-92.el5.
xx -fstype=iso9660,ro,loop :/iso/images/test.iso/var/log/messages shows the generated mount command as
mount -t iso9660 -s -o ro,loop /iso/images.test.iso /isomnt/xx
>> /iso/images/test.iso: Permission denied
I can't seem to figure out which combination of rights I need and where!
I would mount the ISO images as loopback devices on the server first. Then just share the mounted loopback directory
mount -o loop someimage.iso /ISO1
Automounter might be happier this way
I could but I'm looking for a solution that will scale as I add more ISO images. The plan is for this box to hold ISOs of my DVD collection and I want then to automount on demand. If I pre-mount then I start to hit kernel resource issues when I really don't need to. In reality, at worst 5 images will be mounted, but this is from a pool of 100's... Hence needing to fix the security issue.
The post is old but maybe this maybe the way to go:
I realize this is a response to an ancient thread. However, I had this very same problem and I was able to solve it, but in another way.
I'm on PCLinuxOS 2007/2009 and it has PAM installed. I did this:
I then executed it like so:
Of course, I also needed a similar umount command, like so:
|All times are GMT -5. The time now is 11:53 PM.|