Solved

How to make Fedora mount CD's and Keep READ/Exec Attribs?

Posted on 2010-08-12
6
642 Views
Last Modified: 2013-12-15
Whenever I mount a cd in fedora 13, if I run ls -lh on the cd this is the result:

$ls -lh /media/cdrom
total 457M
-rw-r--r--. 1  502 games   48 Jun 23  2008 autorun.inf
dr-xr-xr-x. 1 root root  2.0K Jun 23  2008 directx
-rw-r--r--. 1  502 games  54K Jun 23  2008 disc.ico
-rwx------. 1  502 games 1.2M Jun 23  2008 installer.exe
-rwx------. 1  502 games 456M Jun 23  2008 installer tome.mpq

Open in new window


Notice that there are no bits set for users. (or groups for that matter), on the exe files.

This means I cant run them with wine. How do I mount and allow the files to be read/executed?

PS: I tried adding umask=000 and umask=222 to the mount options, but without success.

Please help. (also, if you have another idea of how to change the umask I'll hear it)

0
Comment
Question by:themrrobert
  • 4
  • 2
6 Comments
 
LVL 11

Accepted Solution

by:
Pieter Jordaan earned 500 total points
ID: 33425336
Files on unix use UID's and GID's to identify the users and groups.

The UID's are referenced using the /etc/passwd file using the UID of the user, which will be displayed when you do an ls -l
The GID are referenced using the /etc/group file.

So, if you create the CD on a linux machine where the UID's and GID's are different to the machine you use to read it, the users will be different.

It it best to change the ownership to root before writing the files to the CD, because UID 0 and GID 0 is always root.
0
 
LVL 13

Author Comment

by:themrrobert
ID: 33425347
Sounds like you are on to something, but this cd is a Factory Pressed cd. There is nothing I can do to change it. It is not a burned cd, so rewriting it isnt going to solve the problem. Its iso9660 why can't I force it mounted readable?

The only solution I see is to run wine as root, and this is not the best solution I am sure.
0
 
LVL 11

Expert Comment

by:Pieter Jordaan
ID: 33425354

Copy the contents to your local drive, then change the ownership.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 11

Assisted Solution

by:Pieter Jordaan
Pieter Jordaan earned 500 total points
ID: 33425380
That looks like a windows CD that was written on UNIX.

You can create a user with the UID 502, because only the owner can execute installer.exe
Then run wine as user with ID 502.

I would just copy the contents.
0
 
LVL 13

Author Comment

by:themrrobert
ID: 33425400
Alright, thanks BitFreeze, as soon as i read your first post, it occured to me as well that it was in may be in unix format, not windows. I misinterpreted 502 and didn't realise it was the user, although I should have. thanks, I will copy the data :)
0
 
LVL 11

Expert Comment

by:Pieter Jordaan
ID: 33425596

It's a pleasure.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question