Linux: Cannot read from exe files on a Cdrom (with wine or cat)

Using Fedora 13, Fresh install, wine 1.2
The cdrom mounts, users can read the directory, but cant read from .exe files or execute them. I think SELinux may play a role here in preventing users from executing or reading executables, but thats just a theory.

Here is output of
#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

Here is my /etc/fstab:
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
# ONLY RELEVANT LINE /\ ******
/dev/mapper/vg_robx11-lv_root /                       ext4    defaults        1 1
UUID=47752c53-cbe7-4494-9497-eb378a73e8c7 /boot                   ext4    defaults        1 2
/dev/mapper/vg_robx11-lv_home /home                   ext4    defaults        1 2
/dev/mapper/vg_robx11-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0

Open in new window


Note: i tried using umask=000 with /dev/cdrom in fstab and the raw mount command.
LVL 13
themrrobertAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kerem ERSOYPresidentCommented:
Hi,


Just check the contents of your /var/log/audit/audit.log or your /var/log/messages. If you see any AVC messages in it after you run .exe then this is an SELinux otherwise it is not.

Cheers,
K.
0
themrrobertAuthor Commented:
It doesn't seem to be SELinux. The problem isn't that it won't allocate memory space, it's that it won't allow me to mount the cd with executable files readable / executable to users. (see original post above)
0
berniepCommented:
the file permissions of installer.exe show that only user "502" has rwx - could this be the problem?
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

nevvamindCommented:
try "setenforce 0" on command line.
Alternatively, edit the /etc/sysconfig/selinux file and set "SELINUX=disabled" and reboot the machine
0
Kerem ERSOYPresidentCommented:
Hi,

If it is not about SELinux it mustbe something about file permissions. User can change to directories because permssiosn about the directory is:

dr-xr-xr-x. 1 root root  2.0K Jun 23  2008 directx

So that any one can change into them.

They can read ordinary files too:

-rw-r--r--. 1  502 games  54K Jun 23  2008 disc.ico

Because you have read permission for others.

But when it comes to exe files:

-rwx------. 1  502 games 1.2M Jun 23  2008 installer.exe

The file belongs to a user id 502 which is unknown over your system (hence it displays only the numeric id). Furthermore only thi non existing users have read and execute pemission over the .exe file.

So it is obvious that nobody could read or execute the exe. For people to be able to rad ans execute you'll need :

chmod 755 installer.exe

Before you burn the cd.

Best Regards,

K.
0
simon3270Commented:
If you can't alter the stored permissions, then you could try creating a user with the UID 502, and allow your other users to run commands as that user, using sudo.





0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.