Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

up vote 19 down vote accepted

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.

share|improve this answer
    
Also noteworthy is the kde-service-menu-fuseiso to mount them in KDE apps, like Dolphin. –  gertvdijk Dec 21 '12 at 21:07
add comment

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.

share|improve this answer
2  
good approach, but root access will be needed to use visudo –  phunehehe Oct 22 '10 at 10:48
1  
@phunehehe - As is the case to set up any solution. –  Cry Havok Oct 22 '10 at 12:13
    
Why not just sudo su and be root? –  qdii Oct 27 '12 at 4:52
2  
Can be exploited, for example you could unmount arbitrary filesystems using umount /media/... –  Chris Down Dec 21 '12 at 21:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.