PDA

View Full Version : [ubuntu] How to change permissions to allow .exe and .jar files?



Awzold
April 4th, 2011, 12:17 PM
Hello, I've been using Ubuntu for a few years, but I am still a noob, and I am having issues trying to load .jar files and .exe files in Wine. I keep getting an error message that says my computer doesn't have permission to load these files. I've done some research and found people saying to enable the file as executable in the files properties, to enable executable in the permissions folder, and to allow source code on the Ubuntu Software screen, but whenever I try to check these boxes, they immediately revert to having a line through them instead. I remember when I was running Ubuntu a few years ago I was able to completely disable this restriction in terminal, but I can't remember what I did. Can someone please help me?

vlaar
April 4th, 2011, 01:05 PM
Hello, I've been using Ubuntu for a few years, but I am still a noob, and I am having issues trying to load .jar files and .exe files in Wine. I keep getting an error message that says my computer doesn't have permission to load these files. I've done some research and found people saying to enable the file as executable in the files properties, to enable executable in the permissions folder, and to allow source code on the Ubuntu Software screen, but whenever I try to check these boxes, they immediately revert to having a line through them instead. I remember when I was running Ubuntu a few years ago I was able to completely disable this restriction in terminal, but I can't remember what I did. Can someone please help me?

for setting a file as executable:
sudo chmod +x filename

to set permissions in wine (not a wine user myself) I bet you have to start wine as super-user.

Morbius1
April 4th, 2011, 02:06 PM
*exe and *.jar files both fall prey to something called "cautious launcher". What it does is checks to see if the file has a Linux executable bit set before it allows Wine or Java to execute it. It has nothing to do with Wine or Java itself.

To remedy this just circumvent "cautious-launcher" with your own file association:

Wine
Open Nautilus and right click an *.exe file. Then select Properties -> Open With -> Add -> Use a custom command > Then type in: wine
Back in the "Open With" tab mark the "wine" you just added as the default.

Java
Open Nautilus and right click an *.jar file. Then select Properties -> Open With -> Add -> Use a custom command > Then type in: java -jar
Back in the "Open With" tab mark the "java" you just added as the default.

IWantFroyo
April 4th, 2011, 02:08 PM
sudo chmod +x filenameI second vlaar's post.

Morbius1
April 4th, 2011, 02:25 PM
The only problem with a "chmod +x" is that it won't work on an NTFS or Fat32 partition or on a CD. Besides, Wine for example doesn't care if it has a Linux executable bit set. Wine itself is incapable of determining if a file has a Linux executable bit set.

Doing the following in a terminal will work because it bypasses "cautious-launcher":

wine /path/to/exe/file
java -jar /path/to/jar/file

monko909
June 19th, 2011, 01:21 AM
If you install NTFS-Config and give yourself read/write permissions, that should do it.