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.
Hello All,
I hope someone can help me out with this. I am running RH 9. Whenever I try to run a command I get and error saying "Cannot execute binary." Does anyone know that this is and how to fix it? Thanks for your help.
Check the permissions of the binary files by using "ls -l" command. I suspect that your user is not permitted to execute those binaries. In that case you will have to change the permissions of file using "chmod" command as super user.
I am getting the same error message too. However, if you did not have permission to execute a certain binary, you will simply get a permission denied message or something similar to that. A can not execute binay file error message could be something more serious. I know this does not help...sorry.
Where is the binary located?
If it is in /tmp, or on the cdrom drive? If so, then the partition is mounted with the "noexec" option. Note that the "user" option, implies the "noexec" option.
Suppose that it is on /mnt/cdrom/program.
Change the directory outside the cdrom and try to execute it like:
>sh /mnt/cdrom/program
Another option, if the program is on the cdrom, is to change the mount options.
add the option "user" to the fstab entry or mount command.
Note that for security reasons, any partition that is world writable, should not allow execution. This is where someone could put a rootkit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.