LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Login shell (https://www.linuxquestions.org/questions/linux-newbie-8/login-shell-4175419811/)

Sirocco 08-01-2012 02:09 PM

Login shell
 
Hi guys,

I have a probably very easy question but I'm struggling to solve it. I wrote a script in sh, changed the shell to /bin/sh, simple as is. Today I changed the shell back to bash (I messed up something so I had to change it in /etc/passwd back to /bin/bash) but every time I launch the terminal, I can see the sh prompt. I use pubuntu, the username is pubuntu as well. Even though the default shell is bash both for the user and root in passwd, every time I start a new session, the default shell is sh. Do anybody know how I can change it?

Every help is much appreciated.

Thanks,
Sirocco

towheedm 08-01-2012 02:15 PM

Change the link pointed to by /bin/sh to /bin/bash.
Code:

ln -s /bin/bash /bin/sh

Sirocco 08-01-2012 02:24 PM

Hi towheedm,

Normally I would say it's the default (sh is linked to bash) but tried it now and works perfectly well. I must have messed something up, echo $0 gives bash immediately. Thanks very much.


All times are GMT -5. The time now is 08:03 PM.