Re: Unable to su as a user, I get: Cannot execute /bin/bash: Permission denied



I do not want to kill this to death but..on a good system:
mach1:/bin# ls -l bash
-rwxr-xr-x 1 root root 769368 2006-12-11 17:28 bash

No one knows how to force a fresh copy of the base debian setup?? with
overly impacting my present system ??? to take care of the xwindows and bash
issuse????


please???
mjh



On Mon, Feb 25, 2008 at 10:57 PM, Rich Healey <healey.rich@xxxxxxxxx> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Habashy wrote:
sorry..i lost you on that...you think that someone changed the
permissions
on /bin/bash ???
they are set to 766 to root.root

can you try to phrase things differently ???
thanks
mjh

On Mon, Feb 25, 2008 at 10:10 PM, Rich Healey <healey.rich@xxxxxxxxx>
wrote:

Michael Habashy wrote:
i agree -

this issue seems to be affecting a couple oof other things on the
server
as
well.
For instance, on the xconsole screen..it lets me login and then
bounces
me
back out.
I uninstalled gdm package, i am left iwth kde ---when i login in with
that...i get an xterm window pop up and it states the same thing :
Cannot
execute /bin/bash: Permission denied

it is driving me up a wall.

thanks..for any help...
mjh

On Mon, Feb 25, 2008 at 6:11 PM, Jeff D <fixedored@xxxxxxxxx> wrote:

Nuno Magalhães wrote:
Cannot execute /bin/bash: Permission denied
Er... have you by any chance tried checking out the permissions for
that file? It'll be executed by the user, not root. Try 766.


That should probably be 755 , not 766, you really dont want
/bin/bash
writeable by anyone but root.

--
8 out of 10 Owners who Expressed a Preference said Their Cats
Preferred
Techno.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx


su root /bin/sh
then chmod a+x /bin/bash

i think someone has been messing with you.

Also to be a right prat, chmod a-x `which chmod` (don't do it, but i've
always been tempted to try it.....)

Worth noting that in runlevel 1 you get a root sh , so you could put it
right that way as well.


- --
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx



it should be 755. 7 = rwx, 5 = rx, 6 = rw
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHw449LeTfO4yBSAcRAqroAKCvQsIVDaubxCdaG5gIVEu3fcuayACeOXyY
76Cxua7sUaaPdwt3jNiyNNs=
=xk3X
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx




Relevant Pages

  • Re: not autocompleting
    ... The lines printed by complete -p are actual bash builtin ... New completion commands may be placed inside the directory ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: bash: ./a.out: Permission denied
    ... bash: ./a.out: Permission denied ... Files aren't automatically executable under Linux. ... chmod u+x a.out ... To unsubscribe or change subscription options: ...
    (Fedora)
  • Re: bash: ./a.out: Permission denied
    ... bash: ./a.out: Permission denied ... chmod u+x a.out ... To unsubscribe or change subscription options: ...
    (Fedora)
  • zpipe.c: the zlib example
    ... bash: ./zpipe: Permission denied ... PS. Enclosed is the strace log: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: Bash socket /dev/tcp
    ... How can I obtain those device onto Debian? ... And this is from the bash manpage: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)