23

Is it possible for a user without root access to mount an arbitrary iso? If so how?

HandyGandy
  • 2,209

2 Answers2

24

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.

roguesys
  • 103
  • 4
fschmitt
  • 8,790
1

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.

Cry Havok
  • 2,048