You are not logged in.

#1 2012-04-23 18:33:06

hansolo128
Member
Registered: 2012-04-23
Posts: 13

[SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

Hello all.

I've just installed arch, despite very little knowledge of linux (i had ubuntu for a short while before this), but I like a challenge so i thought i'd throw myself in at the deep end.

The installation went reasonably smoothly, but now i've got it up and running (with a minimal KDE install) but when I open up the konsole, I get the message

"Warning: Could not find '/bin/bash/', starting '/bin/sh' instead.  Please check your profile settings."

and subsequently I cannot "su jake" (jake being my username, obviously). It requests my password, but when i press return I get the response

su: /bin/bash/: Not a directory

which means i've obviously done something wrong, but I cant make head nor tail of the archwiki on Bash, and from googling, I cant find anyone with a similar issue. I can run from root, but it's not ideal.

Thanks for any response as to why this might be happening, and how to fix it.

Last edited by hansolo128 (2012-04-24 08:55:37)

Offline

#2 2012-04-23 18:40:43

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

/bin/bash/
/bin/sh

Notice something different about those two aside from the letters?  The first has a trailing / which would indicate it's a directory.  Which it isn't, as indicated by the output in your second code block.  You need to figure out what you did wrong to have /bin/bash/ called instead of /bin/bash.

Last edited by alphaniner (2012-04-23 18:41:24)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2012-04-23 23:41:06

hansolo128
Member
Registered: 2012-04-23
Posts: 13

Re: [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

sorry, that was a mistake, /bin/bash wasnt meant to have a trailing /

Offline

#4 2012-04-24 00:00:54

hansolo128
Member
Registered: 2012-04-23
Posts: 13

Re: [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

Apologies, it does indeed have a trailing /. (i.e. "/bin/bash/") can anyone help me as to why this might occur? I really dont know!

Offline

#5 2012-04-24 00:04:25

Oxyd
Member
From: Czech Republic
Registered: 2008-01-17
Posts: 167

Re: [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

Can you verify that /bin/bash really exists? (Run ls /bin/bash) If it exists, what happens when you run it directly? (Just run /bin/bash) If it doesn't, check that you have the package bash installed (it's a part of base, so you should have, unless you deselected it during install or perhaps some error happened (like a failure to download the package) and you decided to ignore it).

Offline

#6 2012-04-24 00:06:05

Oxyd
Member
From: Czech Republic
Registered: 2008-01-17
Posts: 167

Re: [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

Oh, so it does have a trailing /. In that case, what is the output of these three commands?

cat /etc/shells
grep root /etc/passwd
grep jake /etc/passwd

(/etc/passwd, despite its name, does not actually contain any passwords, so it's safe to post it here.)

Offline

#7 2012-04-24 00:08:12

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

hansolo128 wrote:

Apologies, it does indeed have a trailing /. (i.e. "/bin/bash/") can anyone help me as to why this might occur? I really dont know!

Look in /etc/passwd.  You will need to modify the (incorrect) command interpreter with vipw

Offline

#8 2012-04-24 08:05:21

hansolo128
Member
Registered: 2012-04-23
Posts: 13

Re: [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

@oxyd

sh-4.2$ cat /etc/shells
#
# /etc/shells
#

/bin/sh
/bin/bash

# End of file
root:x:0:0:root:/root:/bin/bash
jake:x:1000:100::/home/jake:/bin/bash/

the output of /etc/passwd is

 root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
nobody:x:99:99:nobody:/:/bin/false
dbus:x:81:81:System message bus:/:/bin/false
jake:x:1000:100::/home/jake:/bin/bash/
usbmux:x:140:140:usbmux user:/:/sbin/nologin
mysql:x:89:89::/var/lib/mysql:/bin/false
kdm:x:135:135::/var/lib/kdm:/bin/false
avahi:x:84:84:avahi:/:/bin/false

moving my home directory from /bin/bash/ to /bin/bash on the line of my username now allows me to su jake, but it doesnt solve the warning that /bin/bash/ doesnt exist.

Offline

#9 2012-04-24 08:08:04

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

Configure the current profile in konsole and change the Command from /bin/bash/ to /bin/bash

Offline

#10 2012-04-24 08:16:28

hansolo128
Member
Registered: 2012-04-23
Posts: 13

Re: [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

Is that not what I did with changing

jake:x:1000:100::/home/jake:/bin/bash/

to

jake:x:1000:100::/home/jake:/bin/bash

?

Offline

#11 2012-04-24 08:50:37

seveg
Member
From: Bratislava, Slovakia
Registered: 2012-04-17
Posts: 33

Re: [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

I think he meant KDE Konsole settings..


Just another drug abuser..

Offline

#12 2012-04-24 08:53:50

hansolo128
Member
Registered: 2012-04-23
Posts: 13

Re: [SOLVED] "warning: could not find /bin/bash, starting /bin/sh instead"

ah, fantastic. problem solved. thanks smile

Offline

Board footer

Powered by FluxBB