LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-12-2010, 04:31 PM   #1
themrrobert
Member
 
Registered: Feb 2007
Distribution: Debian Sid
Posts: 47

Rep: Reputation: 16
Unhappy Cannot read from exe files on a Cdrom (with wine or cat)


My fstab is basic,

Code:
/dev/cdrom /media/cdrom auto ro,user,exec 0 0
I've tried commenting out the line and mounting directly, and have also tried using ,umask=000, but when i add that to the options, it wont mount due to bad fs type or bad superblock, etc, but it mounts fine without umask.

The problem is, its not allowing users other than root to read from exe files. Here is the output of
#ls -lh /media/cdrom
Code:
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
I need to be able to run wine /media/cdrom/installer.exe, wine finds the file ok, but cant read from it so it says it can't access the file or something like that.

Fedora 13
 
Old 08-12-2010, 05:02 PM   #2
systemserverscom
LQ Newbie
 
Registered: Aug 2010
Location: Southern California
Distribution: Arch etc
Posts: 2

Rep: Reputation: 0
for old dos/windows programs to see the cd under wine it needs to see things in the ./wine structure as a dos drive letter, so open fileman in wine and and look for the pretend place for the cd directory in the dosish world wine creates.

you may need to create a symbolic link more palatable to wine.
ie as your wine user: ln -s "/media/cdrom" ~/.wine/D:

if you need to do this identicly to multiple users it might be easier to copy .wine to /etc/skel to prepopulate the users as they are created

Last edited by systemserverscom; 08-12-2010 at 05:17 PM.
 
Old 08-12-2010, 05:17 PM   #3
themrrobert
Member
 
Registered: Feb 2007
Distribution: Debian Sid
Posts: 47

Original Poster
Rep: Reputation: 16
It would normally be mounted as /media/Diablo II Install Disc 1 but I had to change it in order to be able to hot-swap cds as it is a 4 cd install.

I am fully aware that there is no execute permission (or read permission). I need to figure out HOW to mount it so that the read permission stays for all users not just root.

SO IT IS ACTUALLY MOUNTED WHERE I SAID IT WAS , because it it mounts on its own, the installer won't be able to find the 2nd, and 3rd cds

//Edit
Even when using the original label (removing fstab settings and ejecting/eject -t'ing the cd, so it regenerates a mount point in /media, it still doesn't allow reading by user.

Last edited by themrrobert; 08-12-2010 at 05:27 PM. Reason: add last line
 
Old 08-12-2010, 05:51 PM   #4
themrrobert
Member
 
Registered: Feb 2007
Distribution: Debian Sid
Posts: 47

Original Poster
Rep: Reputation: 16
I Read your edit, It still doesn't apply to the problem.

The problem is simple: The system WONT allow users (non-root) to read from or execute (.exe files) on a cdrom. I need to mound the cd so that all files are readable to all users, but using the umask=000 flag doesn't work, in fact, it makes everything break.

Last edited by themrrobert; 08-12-2010 at 05:51 PM. Reason: clarity
 
  


Reply

Tags
fstab, mount, permissions, umask, wine


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to run .exe files using wine av.dubey Linux - Newbie 9 01-13-2008 03:02 PM
Associating .exe files with Wine Cinematography Linux - Software 8 05-04-2005 08:08 PM
Wine and .exe-files ?! irrlichterum Linux - Software 4 04-17-2005 05:18 PM
Can Linux read Window's .exe files? dudeguy9001 Linux - Software 7 12-24-2004 05:31 PM
WINE and .exe files evilmonkey Linux - Newbie 7 06-22-2003 01:19 PM


All times are GMT -5. The time now is 03:16 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration