[NTLUG:Discuss] Why does nfs wreck shell scripts?
Chris Cox
cjcox at acm.org
Thu Aug 22 00:04:24 CDT 2002
R. Jay Campbell wrote:
> It may not be an nfs problem. Are you sure the file "test" has execute
> permissions? (-rwxr-xr-x)
Make sure you are not trying to execute as root, unless your are
allowing root to execute across NFS (which is generally a bad
idea).
>
>
> Lance Simmons wrote:
>
>>I'm playing around with nfs at home. When I've got a bash script on an
>>nfs-mounted filesystem, I can't execute it directly. Consider this
>>script, named "test":
>>
>> #!/bin/sh
>> echo "test"
>> exit 0
>>
>>When I try to execute test directly (./test), I get this error:
>>
>> bash: ./test: /bin/sh: bad interpreter: Permission denied
>>
>>When I try to execute test with the command "sh ./test", it works.
>>
>>Can someone knowledgeable about nfs explain what this is about? I
>>imagine it's something pretty simple. I'm probably misunderstanding the
>>metaphysics of nfs, but I'm not sure where to look.
>>
>>--
>> .~.
>> /V\ Lance Simmons
>>/( )\ lance at lsimmons.net
>>^^-^^
>>
>>_______________________________________________
>>http://www.ntlug.org/mailman/listinfo/discuss
>
>
More information about the Discuss
mailing list