Check this out.... This is with the new 11.2 factory.... linux:/home/ricreig # vi test linux:/home/ricreig # ls test test linux:/home/ricreig # cat test #!/bin/bash exit linux:/home/ricreig # ./test -bash: ./test: Permission denied #OK, I expected that.. linux:/home/ricreig # chmod 777 test #Should fix the permission linux:/home/ricreig # ./test -bash: ./test: /bin/bash: bad interpreter: Permission denied #Bad interpreter???? #Permission denied??? I'm 'god' already linux:/home/ricreig # cat test #I mean this is really complex #!/bin/bash exit linux:/home/ricreig # ls -l /bin/bash #There *is* a /bin/bash (new) -rwxr-xr-x 1 root root 586824 May 28 09:02 /bin/bash OK, I give up, What's wrong here? Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 08 June 2009 02:35:45 Richard wrote: [...]
linux:/home/ricreig # ./test -bash: ./test: /bin/bash: bad interpreter: Permission denied [...] OK, I give up, What's wrong here?
Could it be that your home partition is mounted with the "noexec" flag (or the "user" flag, which implies "noexec") Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun June 7 2009 8:44:02 pm Anders Johansson wrote:
On Monday 08 June 2009 02:35:45 Richard wrote: [...]
linux:/home/ricreig # ./test -bash: ./test: /bin/bash: bad interpreter: Permission denied [...] OK, I give up, What's wrong here?
Could it be that your home partition is mounted with the "noexec" flag (or the "user" flag, which implies "noexec")
Anders
I'm running as ROOT and as ME, both fail. IF I run it with /bin/bash ./test, it works, if I say ./test, it doesn't. If I say #which bash, it returns /bin/bash # and no others When I do a ls -l /bin/bash, it gives -rwxr-xr-x for permissions with root root as owner group. Given I'm running it as root, I don't see where the problem is. On my other machines, it runs fine, only the machine running 11.2+ after the update from factory on or about 28May does this problem start. I first started noticing this when trying to run scripts that listed install distributions which was written a hell of a long time ago and will run if I preface it with /bin/bash/root/Dists instead of ./Dists while logged into /root as root. Richard -- Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2009-06-07 at 22:45 -0400, Richard Creighton wrote:
On Sun June 7 2009 8:44:02 pm Anders Johansson wrote:
On Monday 08 June 2009 02:35:45 Richard wrote: [...]
linux:/home/ricreig # ./test -bash: ./test: /bin/bash: bad interpreter: Permission denied [...] OK, I give up, What's wrong here?
Could it be that your home partition is mounted with the "noexec" flag (or the "user" flag, which implies "noexec")
Anders
I'm running as ROOT and as ME, both fail. IF I run it with /bin/bash ./test, it works, if I say ./test, it doesn't. If I say #which bash, it returns /bin/bash #
and no others
which test remember that there is a system binary of that name (and an internal bash command), it might be interfering. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkos6sQACgkQtTMYHG2NR9U3bgCfdMQhgsdmI/u2/g9ddKj9IdkM D+wAmQEtmFPawrUeoWvgvF+zkBXW49H2 =Wp85 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2009-06-08 at 12:41 +0200, Carlos E. R. wrote:
On Sunday, 2009-06-07 at 22:45 -0400, Richard Creighton wrote:
On Sun June 7 2009 8:44:02 pm Anders Johansson wrote:
On Monday 08 June 2009 02:35:45 Richard wrote: [...]
linux:/home/ricreig # ./test -bash: ./test: /bin/bash: bad interpreter: Permission denied [...] OK, I give up, What's wrong here Could it be that your home partition is mounted with the "noexec" flag (or the "user" flag, which implies "noexec") I'm running as ROOT and as ME, both fail. IF I run it with /bin/bash ./test, it works, if I say ./test, it doesn't. If I say #which bash, it returns /bin/bash
and no others which test remember that there is a system binary of that name (and an internal bash command), it might be interfering.
Not when he runs it like "./test", which specifies the absolute path (although, yes, "test" is a very bad choice for a script name). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2009-06-07 at 22:45 -0400, Richard Creighton wrote:
On Sun June 7 2009 8:44:02 pm Anders Johansson wrote:
On Monday 08 June 2009 02:35:45 Richard wrote: [...]
linux:/home/ricreig # ./test -bash: ./test: /bin/bash: bad interpreter: Permission denied [...] OK, I give up, What's wrong here? Could it be that your home partition is mounted with the "noexec" flag (or the "user" flag, which implies "noexec") Anders I'm running as ROOT and as ME, both fail. IF I run it with /bin/bash ./test, it works, if I say ./test, it doesn't. If I say #which bash, it returns /bin/bash # and no others When I do a ls -l /bin/bash, it gives -rwxr-xr-x for permissions with root root as owner group. Given I'm running it as root, I don't see where the problem is. On my other machines, it runs fine, only the machine running 11.2+ after the update from factory on or about 28May does this problem start. I first started noticing this when trying to run scripts that listed install distributions which was written a hell of a long time ago and will run if I preface it with /bin/bash/root/Dists instead of ./Dists while logged into /root as root.
Nothing in this e-mail suggest that you checked the mount options as suggested in the previous e-mail; if your /home is mounted as "noexec" it will [correctly] exhibit exactly the behavior you describe. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
In <200906072245.13147.rccj@ricreig.com>, Richard Creighton wrote:
On Sun June 7 2009 8:44:02 pm Anders Johansson wrote:
On Monday 08 June 2009 02:35:45 Richard wrote:
linux:/home/ricreig # ./test -bash: ./test: /bin/bash: bad interpreter: Permission denied OK, I give up, What's wrong here? Could it be that your home partition is mounted with the "noexec" flag (or the "user" flag, which implies "noexec") I'm running as ROOT and as ME, both fail.
The "noexec" mount option affects both root and normal users. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
participants (6)
-
Adam Tauno WIlliams
-
Anders Johansson
-
Boyd Stephen Smith Jr.
-
Carlos E. R.
-
Richard
-
Richard Creighton