[NTLUG:Discuss] Why does nfs wreck shell scripts?
Greg Edwards
greg at nas-inet.com
Thu Aug 22 02:59:33 CDT 2002
In your mount (auto/amd/or fstab) do you have -exec or -noexec set?
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.
>
>
--
Greg Edwards
New Age Software, Inc.
http://www.nas-inet.com
More information about the Discuss
mailing list