she-bang doesn't work - bad interpreter: Permission denied
I've searched the mailing list archives and can't find any relevant threads.
Here's my environment:
Fedora Core 3
[root@aslan bin]# rpm -q lvm2
lvm2-2.00.25-1.01
[root@aslan bin]# lvm version
LVM version: 2.00.25 (2004-09-29)
Library version: 1.00.19-ioctl (2004-07-03)
Driver version: 4.1.0
When I try to excute a simple perl program on my /home/.../bin (which is on a logical volume partition) I get:
[root@aslan bin]# cat hello-world #!/usr/bin/perl -wT
print "hello, world!\n" ;
[root@aslan bin]# ./hello-world
bash: ./hello-world: /usr/bin/perl: bad interpreter:
Permission denied
[root@aslan bin]#
But I try the same exact program on the same partition as the interperter
[root@aslan bin]# /tmp/hello-world
hello, world!
Am I not holding my mouth right? What could be preventing the execution of my scripts from my logical volume?
Patrick
=====
Patrick Bartkus, RHCE, CCNP, SCM Sr. Network Support Analyst
Atlanta, GA
If truth was not absolute, how could there be justice?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 3 lines · Patrick Bartkus
When I try to excute a simple perl program on my
/home/.../bin(which is on a logical volume partition) I get:
Make sure that /home isn't mounted noexec.
-Jason Martin
Signature · 2 lines
Confucius say: Man who run behind truck get exhausted. This message is PGP/MIME signed.
Jason,
[Very embarrassed sheepish grin]
Well, as a matter of fact, it was...
Thanks! That fixed everything.
Patrick
Quoted 13 lines · --- Jason Martin
Quoted 2 lines · Patrick Bartkus
When I try to excute a simple perl program on my
/home/.../bin(which is on a logical volumepartition)
Quoted 1 line
I get:
Make sure that /home isn't mounted noexec.
-Jason Martin
Signature · 3 lines
Confucius say: Man who run behind truck get exhausted. This message is PGP/MIME signed.
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
Quoted 4 lines · Patrick Bartkus
Jason,
[Very embarrassed sheepish grin]
Well, as a matter of fact, it was...
Thanks! That fixed everything.
I've always thought that the error message generated in that situation wasn't very helpful. I've hit that a lot with things stored in /tmp, whomever sees it always goes off on a wild goose chase checking why perl or sh isn't working.
-Jason Martin
Signature · 1 line
This message is PGP/MIME signed.