[gentoo-user] Help with mounting an ISO file as non-root

2008-04-23 Thread Mike Mazur
Hi,

I'd like to mount an ISO image from the command line as non-root user.
Here are my attempts, each failing with the only root can do that
error message:

$ mount -o loop image.iso /mnt/
mount: only root can do that
$ mount -o user,loop image.iso /mnt/
mount: only root can do that
$ mount -o users,loop image.iso /mnt/
mount: only root can do that
$ mount -o user -o loop image.iso /mnt/
mount: only root can do that
$ mount -o users -o loop image.iso /mnt/
mount: only root can do that

I keep reading about how the mount and umount commands need the suid
bit set, which it already is:

$ ll /bin/mount /bin/umount
-rws--x--x 1 root root 51480 2008-04-10 14:11 /bin/mount
-rws--x--x 1 root root 34584 2008-04-10 14:11 /bin/umount

Furthermore, adding the following line to my /etc/fstab allows me to
mount the image as non-root:

/path/to/image.iso   /mnt/  udf,iso9660 user,loop   0 0

However, this is not an option for me as I work with different
images/mount points all the time.

What can I do to be able to mount an arbitrary ISO image to an
arbitrary mount point from the command line as non-root user?

Thanks!
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Help with mounting an ISO file as non-root

2008-04-23 Thread Norberto Bensa

Quoting Mike Mazur [EMAIL PROTECTED]:



What can I do to be able to mount an arbitrary ISO image to an
arbitrary mount point from the command line as non-root user?


fuse-iso ?



This message was sent using IMP, the Internet Messaging Program.


--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Help with mounting an ISO file as non-root

2008-04-23 Thread Mike Mazur
Hi Norberto,

On Thu, Apr 24, 2008 at 11:22 AM, Norberto Bensa [EMAIL PROTECTED] wrote:
  What can I do to be able to mount an arbitrary ISO image to an
  arbitrary mount point from the command line as non-root user?

  fuse-iso ?

While fuse-iso would certainly do this for me, I was hoping it's
possible with the mount command directly.

The reason for this is that this mounting/unmounting is also in some
automated tests which will find their way onto machines of others who
may not have fuse-iso configured. Currently we simply require the
tests to be run as root. I won't be adding another dependency just to
get around this.

Thanks though,
Mike
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Help with mounting an ISO file as non-root

2008-04-23 Thread Roy Wright
Take a look at:

http://gentoo-wiki.com/TIP_Mounting_Iso_Files

HTH,
Roy
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Help with mounting an ISO file as non-root

2008-04-23 Thread Dirk Heinrichs

ext Mike Mazur schrieb:


While fuse-iso would certainly do this for me, I was hoping it's
possible with the mount command directly.


sudo mount ...

HTH...

Dirk
--
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net



signature.asc
Description: OpenPGP digital signature