Is it possible for a user without root access to mount an arbitrary iso? If so how?
2 Answers
You can do this without root access using the fuse module fuseiso. After fuse and fuseiso have been installed, you can do as a normal user fuseiso cdimage.iso ~/somedirectory to mount it.
You may also need to add your user to the fuse group if you get permission errors when trying to use fuseiso.
-
Also noteworthy is the kde-service-menu-fuseiso to mount them in KDE apps, like Dolphin.gertvdijk– gertvdijk2012-12-21 21:07:13 +00:00Commented Dec 21, 2012 at 21:07
The easiest way is probably with sudo. Let's assume that you want everybody in the cdrom group able to mount and unmount ISO images. Make the following addition to the sudoers file using visudo:
cdrom ALL = /bin/mount -o loop -t iso9660 *.iso /media/*
cdrom ALL = /bin/umount /media/*
This should allow anybody in the cdrom group to mount a file ending in .iso as type iso9660 on a directory inside the /media folder and also unmount anything in the /media folder.
-
2good approach, but root access will be needed to use
visudophunehehe– phunehehe2010-10-22 10:48:38 +00:00Commented Oct 22, 2010 at 10:48 -
1@phunehehe - As is the case to set up any solution.Cry Havok– Cry Havok2010-10-22 12:13:07 +00:00Commented Oct 22, 2010 at 12:13
-
Why not just
sudo suand be root?qdii– qdii2012-10-27 04:52:29 +00:00Commented Oct 27, 2012 at 4:52 -
2Can be exploited, for example you could unmount arbitrary filesystems using
umount /media/...Chris Down– Chris Down2012-12-21 21:10:45 +00:00Commented Dec 21, 2012 at 21:10