[NTLUG:Discuss] Why does nfs wreck shell scripts?
R. Jay Campbell
chezjc at attbi.com
Wed Aug 21 23:04:32 CDT 2002
It may not be an nfs problem. Are you sure the file "test" has execute
permissions? (-rwxr-xr-x)
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
--
R. Jay Campbell
mailto:chezjc at attbi.com
"Imagine there's no heaven, it's easy if you try;
No hell below us, above us, only sky..."
More information about the Discuss
mailing list