Solved

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

Posted on 2010-08-12
6
666 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

707 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