Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2010-08-12
6
Medium Priority
?
691 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 2000 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
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
LVL 11

Assisted Solution

by:Pieter Jordaan
Pieter Jordaan earned 2000 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
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…
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.
Suggested Courses

636 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