Solved

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

Posted on 2010-08-12
6
652 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

726 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