You are not logged in.
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
/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
sorry, that was a mistake, /bin/bash wasnt meant to have a trailing /
Offline
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
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
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
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
Online
@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
Configure the current profile in konsole and change the Command from /bin/bash/ to /bin/bash
Online
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
I think he meant KDE Konsole settings..
Just another drug abuser..
Offline
ah, fantastic. problem solved. thanks
Offline