LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 03-19-2014, 10:43 PM   #1
nyllix
LQ Newbie
 
Registered: Mar 2014
Location: Iowa
Distribution: Mint Petra
Posts: 1

Rep: Reputation: Disabled
mount ISO without sudo?


My son was shuffling through a pile of OLD game CD's we had laying around, and asked can we play this (old Win98 game) on the Linux box? We've had Wine for awhile, so we popped in the CD and got it going. Yay! But when trying to play, there was a bad spot on the CD and the game crashed. I looked up how to use gddrescue, and now have an ISO with no errors. Yay! So now I use sudo to mount the ISO, and start the game in Wine. It works just fine. Yay!

The problem is that my son wants to play the game on his user account. I don't want to have to type a password every time he feels like playing the game. As far as I have been able to determine, mount is only available via the sudo command. Probably that's a very good security kind of thing. The actual CD mounts automatically at login for both of our user accounts, without any user interaction required. That is what I'd like to do with the ISO.

Is burning the ISO back onto a disc the only way to accomplish this? Is there an alternative (location/sharing/permission?) setup that would work? I believe the game in question requires the CD for gameplay, so I'm guessing that means one way or another an ISO (or disk) must be mounted. Is there a way to mount w/out sudo?

Thank you in advance for your help!
Running Mint Petra, wine 1.4.1
 
Old 03-19-2014, 11:15 PM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
You only have to use 'sudo' because, essentially, you are overriding what the system sees as allowable according to /etc/fstab. Therefore, you can set it up in /etc/fstab such that when the ISO is attempted to be mounted, it is permitted to be mounted without special permissions.

An entry a little like this:

Code:
/path/to/reallyoldgame.iso /mnt/game iso9660 loop,ro,auto 0 0
I don't know where the "best" place for the iso would be. I usually put shared data in /usr/local/share but then you have to remember to back that up, which a lot of people don't do since on "normal" home computers all the important data is in /home

Another option is to create a "shared" folder in /home and mark it as a usable place by everyone or by some special group you create...like a "family" group for instance:

Code:
sudo mkdir /home/shared
chown -R $USER:family /home/shared
chmod -R 775 /home/shared
usermod -a -g family your-sons-username
Now he can access the iso file, mount it, and level up.
 
Old 03-20-2014, 05:59 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Have a look at fuseiso, it can be used in your distro and can mount any ISO file without the need for passwords.
 
Old 03-20-2014, 07:04 AM   #4
buginprogram
LQ Newbie
 
Registered: Dec 2013
Distribution: Xubuntu 8.04
Posts: 20

Rep: Reputation: Disabled
Don't you have to add the "user" option to the entry in fstab? I had to do that with my Windows partition before I could mount it as non-root.

EDIT: You'll probably also want to change "auto" to "noauto" to stop it mounting every time you or someone else logs in.

Last edited by buginprogram; 03-20-2014 at 07:06 AM.
 
  


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
Mount an ISO made with dd if=/dev/sda2 of=/backups/backup.iso pcsousa Linux - Newbie 8 02-26-2010 06:33 PM
Mount ISO as specific device (ie: /dev/sda1) with GRUB2 to boot KNOPPIX live cd iso BLuFeNiX Linux - General 2 12-23-2009 01:31 AM
LXer: Mounting ISO Images With Furius ISO Mount On Ubuntu 8.04 Desktop LXer Syndicated Linux News 0 09-26-2008 04:30 PM
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help! TruANTOlogy Ubuntu 8 06-20-2006 08:00 AM
mount a .iso or extract a .iso behind user witout access to root easytarget Linux - Newbie 3 09-29-2002 05:01 AM

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

All times are GMT -5. The time now is 05:39 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