Ubuntu 11.04 can't set execute permission for Windows exe's

Asked by Howard Handelman

Using version 11.04 on an AMD home-built PC. Dual boot with Vista Home Premium.
Just updated via my update manager today so all is up to date, I think.
Previous version, I could execute Windows programs via Wine.
Since upgrade I can't.
Examples: (IrfanView)
Tried chmod 777 I_view32.exe. in root terminal. Looks OK at the time.
Tried chmod 7777 i_view32.exe. in root terminal. Looks OK at the time.
After the above, the problem remains and the execute bit shows blank in the Gnome window.
Tried in Gnome as administrator.
If I check the box for executable it briefly shows the check then the check vanishes.

I used Ubuntu more than 75% of the time before.
Now I really can't use it because of my legacy Windows applications.

Please help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu wine Edit question
Assignee:
No assignee Edit question
Solved by:
Howard Handelman
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please note Ubuntu 11.04 is an unstable release NOT SUGGESTED for every day use it will be released as stable in April 2011

Revision history for this message
Howard Handelman (howard-n6zb) said :
#2

I thought I was on the latest stable release. How do I revert?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Please install wine package and try to open with wine

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

You can use this release i have it on 2 pc but you can have trouble on some new functionality.
So please tell me what are the most used apps you using on Ubuntu...?

Revision history for this message
Howard Handelman (howard-n6zb) said :
#5

IrfanView
Notepad++
GoldenEagle FlightPrep
AZZ Cardfile

So I should remove and re-install Wine or just re-install?
Can Wine re-set the execute bit?
In the past I had to set it manually.

Revision history for this message
Howard Handelman (howard-n6zb) said :
#6

Oddly, Notewhen from PCMag still works.

Revision history for this message
Christian Dannie Storgaard (cybolic) said :
#7

In my experience, downgrading an entire system isn't really doable, so I'd recommend backing everything up (unless you have clever partitioning that negates that) and reinstalling 10.10.

Revision history for this message
Howard Handelman (howard-n6zb) said :
#8

I don't think this is a Wine problem. It's a permissions problem.

Some of my old Windows apps work under Wine and two important ones balk at being non-executable.
IrfanView and FlightPrep.

Here is what happens when I try to change the permissions: (note that it says it worked, but it didn't)

root@howard-ubuntu:/media/Windows/Program Files (x86)/IrfanView# chmod -v +x+x+x+x i_view32.exe
mode of `i_view32.exe' changed to 0711 (rwx--x--x)
root@howard-ubuntu:/media/Windows/Program Files (x86)/IrfanView# ls -l
total 897
drwx------ 1 howard howard 0 2009-02-13 19:56 Html
-rw------- 1 howard howard 2417 2010-06-10 16:05 i_about.txt
-rw------- 2 howard howard 75069 2010-06-10 16:05 i_changes.txt
-rw------- 2 howard howard 765 2010-06-10 16:05 i_languages.txt
-rw------- 2 howard howard 16362 2010-06-10 16:05 i_options.txt
-rw------- 2 howard howard 12938 2010-06-10 16:05 i_plugins.txt
-rw------- 1 howard howard 250244 2010-06-10 16:05 i_view32.chm
-rw------- 1 howard howard 494080 2010-06-10 16:05 i_view32.exe
-rw------- 1 howard howard 121 2010-06-10 16:05 i_view32.ini
-rw------- 2 howard howard 29696 2010-06-10 16:05 iv_uninstall.exe
drwx------ 1 howard howard 0 2009-02-13 19:56 Languages
drwx------ 1 howard howard 12288 2009-12-25 10:28 Plugins
drwx------ 1 howard howard 4096 2009-02-13 19:56 Toolbars
root@howard-ubuntu:/media/Windows/Program Files (x86)/IrfanView#

Revision history for this message
Christian Dannie Storgaard (cybolic) said :
#9

This could be an issue with the mounting of the device.
Could you post the output of "mount"?

Revision history for this message
Howard Handelman (howard-n6zb) said :
#10

I was able to run each of those applications from the command line in Terminal.
wine pathname filename
This did not install them properly in wine but it did run them OK, permissions notwithstanding.
So I build menu items that used the above syntax rather than trying to run them from inside the wine menu.
That worked.

Thanks, everyone for the help.
This is a workaround, but an acceptable one.

It seems to me that if you are "root" you should be able to make anything executable. Apparently, the security policy does not think so!

Revision history for this message
Jack Leigh (leighman) said :
#11

They on an ntfs partition?
I can't get things to execute from my external harddrive

Revision history for this message
Howard Handelman (howard-n6zb) said :
#12

All the Windows applications are on the Windows partition which is NTFS.
Since I was able to set the execute bit in previous versions, this is something
that changed with the new version.

To repeat, even though I cannot set the execute bit, Wine can run these applications.
But, I have to use this syntax:
Wine path/file where the path begins /media/Windows...

This works OK, so my immediate problem is solved by work-around.
I still think that as administrator or root I should be able to set that bit.

Revision history for this message
Christian Dannie Storgaard (cybolic) said :
#13

leighman, try installing ntfs-config and running it. It should allow you to change the read/write settings for your drive.

Revision history for this message
Howard Handelman (howard-n6zb) said :
#14

CDS,
This is very odd. I was able to write to that partition before. However, I did as you suggested and now the execute bit is checked.
The ntfs-config program does not explicitly mention the execute permission.
Strange.
But, THANKS!

Revision history for this message
Bhargav A.K (anur-bhargav) said :
#15

I was able to Install Windows Applications from my pen-drive. Its a FAT-32 file-system.
Every time I check "allow execution of this file" In the Properties=> Permissions menu... Its gets Unchecked Automatically, Hence Installation Fails..