LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-21-2006, 02:56 AM   #1
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 69

Rep: Reputation: 15
mounting iso without root privileges?


Hello everybody!

I'm just wondering...

Code:
mount -t iso9660 -o loop,ro ./foo.iso ./foo_mnt_dir
tells me that I need to be root to do this.
All solutions that I found to this involve either entering the mount point and the image into fstab or becoming root.

This seems a bit dirty to me - I don't see why I would need to be root to mount an iso image from my home dir into a subdirectory within my home dir...

Is there any way to get around this? Like entering something into fstab that will allow -loop mounts for every user?

Thanks a lot in advance,
-Wojtek
 
Old 05-21-2006, 03:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there is no wat with the kernel space toolsl like mount, but there is the fuse project which i know very little abuot, but is all about user space filesystem interactions. it looks like the current versions of fuse (now also part of the kernel since 2.6.14 apparently) contain a binary called mountlo which should do what you are after.
 
Old 05-21-2006, 03:19 AM   #3
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks a lot for the tip, I'll have a look at it asap!
 
Old 05-23-2006, 06:49 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Quote:
Originally Posted by grayFalcon
This seems a bit dirty to me - I don't see why I would need to be root to mount an iso image from my home dir into a subdirectory within my home dir...
Well, sorry to dissapoint you but this is how unix works. Mounting a filesystem is considered an administrative task and generally requires root.

You can try to find or create a suid-bit "mount" type of program that would allow users to mount filesystems according to some policy (e.g. only mount inside their home dir, only mount as noexec, nosuid, nodev, etc.)

One such example is called "pmount" and it is used to mount hot-pluggable devices automatically.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB HD Needs Root Privileges rrrssssss Linux - Hardware 3 11-13-2005 04:08 PM
Root privileges for user ar1 Linux - Security 2 01-07-2005 09:33 PM
User with root privileges ShakyJake Linux - Newbie 2 06-18-2004 12:12 PM
root privileges and permissions evil_lafta Slackware 7 08-20-2003 09:37 PM
Xine and root privileges markus1982 Linux - Software 1 08-18-2003 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration