LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-14-2004, 07:13 AM   #1
jeson_515
LQ Newbie
 
Registered: Jul 2003
Location: china
Posts: 12

Rep: Reputation: 0
Why the executable file could not execute?


when I want to execute the binary file or shell scripts ,I got this prompt : -bash : ./test : Permission denied and I am sure I've changed the file's permission : chmod u+x test
 
Old 03-14-2004, 07:32 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Which test are you talking about??

There's already a program called test (/usr/bin/test). Depending on the place of the 'new' test program and the path setting, you might try to start the 'real' test program.

Rename your new test program to something else.

Hope this helps.
 
Old 03-14-2004, 08:46 AM   #3
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
Quite strange... only advice I can give is to check that:
1) you are not on a filesystem mounted with -noexec flag
2) try a "ls -l test" to check you actually have the appropriate permissions
3) on non-native fs (like vfat) execution permissions are set filesystem-wide
4) if the file has "set-uid" enabled, maybe this is disabled for your user or fs for securty reason
5) if a script uses the #! tag (e.g. #!/bin/perl) you may have used a wrong executable path
 
Old 03-14-2004, 10:40 PM   #4
jeson_515
LQ Newbie
 
Registered: Jul 2003
Location: china
Posts: 12

Original Poster
Rep: Reputation: 0
The file I want to execute is on a non-native fs ,yes, I had better to have a look at the permission .
and to druuan : I have all ready try other programs and got the same answer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I lauch a file by its executable cjae Suse/Novell 1 07-12-2005 12:51 PM
shell script to execute my c executable cranium2004 Programming 2 04-06-2005 06:26 AM
Run/execute Kylix executable stormNC Programming 4 06-10-2004 03:44 PM
Linux Executable File Help (created from a .c file) MattG1981 Linux - Newbie 7 06-06-2004 05:54 PM
Cannot execute executable files without ./ brady9953 Linux - Newbie 3 10-13-2003 04:19 PM


All times are GMT -5. The time now is 11:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration