Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
for some reason, and im sure its a easy to fix one, i cant run bin files from the console window, i used to be able to, i used the ./filename, and now it tells me that i dont have permission so i used the su command and then tried it and i still dont have permission so i logged on as root, and it still says i dont have persmission, right now im trying to run the java bin file and the ut2003 demo file which is a bin too, and it cant run them, should i just reinstall or can someone help?
chmod +x filename.bin followed by ./filename.bin
In Linux (as in most, if not all, *nix setups) files need to be set as eXecutable before you can run them.
Pyropenguin, make sure you understand trickykid's question. Unlike MS-DOS/Windows, where the operating system assumes certain file extensions are executable (.bat, .exe and .com), Linux looks at the file properties to determine if the file is executable and if the current user has permission to execute it.
The command that Thymox gave you is the most likely answer--it is what all three of us were pointing you at. In a shell, type 'man chmod' and you'll get several pages on this useful little command. If you're not familiar with the man pages, you exit them by pressing 'q'.
One final note. You said they have 'the rw'--did you only see one set (there should have been two or three)? If so, you will probably have to issue chmod as root.
i tried the chmod -x and then ./filename and it didnt work, i mean is the x supposed to be like a variable where i put something else in or not, because i tried it, and i still get the same message about how i do not have permission
and on another note, about the rw next to it, i have copied and pasted what happens after i did that
drwx------ 6 Adam Adam 4096 Nov 7 16:39 evolution
-rw------- 1 Adam Adam 21310600 Nov 6 21:45 j2re-1_4_0_02-linux-i586-rpm.bin
drwxrwxr-x 2 Adam Adam 4096 Nov 7 11:24 setiathome
-rw-rw-r-- 1 Adam Adam 89204 Nov 5 21:52 tuXperience~2.jpg
-rw-rw-r-- 1 Adam Adam 222783 Nov 5 22:52 tuxwhitebig.jpg
-rw-rw-r-- 1 Adam Adam 98801732 Sep 13 23:53 UT2003-Demo-Linux.sh.bin
the one im trying to do it to is unreal tournament and the jre2 java one, hopefully this will help you help me!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.