Thank you!<br>Everything is bash-ful again.<br><div class="gmail_quote">On Thu Jan 22 2015 at 12:12:35 PM Alexander Bokovoy <<a href="mailto:abokovoy@redhat.com">abokovoy@redhat.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 22 Jan 2015, Sina Owolabi wrote:<br>
>Sorry I was misunderstood. The umm.../bin/sh? Was me being sheepish after<br>
>causing all the ruckus this morning.<br>
>-sh-4.1$ getent passwd sina<br>
>sina:*:392100000:392100000:<u></u>Sina Owolabi:/home/sina:/bin/sh<br>
><br>
>How do I change the default to /bin/bash?<br>
If it is IPA user, do following:<br>
<br>
$ kinit sina<br>
$ ipa user-mod sina --shell=/bin/bash<br>
<br>
The default is to have the shell set to /bin/sh because bash isn't<br>
available on all platforms by default and OpenSSH will refuse to log in<br>
a user which uses non-existing shell. /bin/sh is guaranteed to exist in<br>
all POSIX-compatible environments.<br>
<br>
You can change defaults via<br>
<br>
$ kinit admin<br>
$ ipa config-mod --defaultshell=/bin/bash<br>
<br>
The defaults will only apply to users that will be created after the<br>
change.<br>
<br>
><br>
>On Thu Jan 22 2015 at 11:37:03 AM Alexander Bokovoy <<a href="mailto:abokovoy@redhat.com" target="_blank">abokovoy@redhat.com</a>><br>
>wrote:<br>
><br>
>> On Thu, 22 Jan 2015, Sina Owolabi wrote:<br>
>> >Umm... /bin/sh?<br>
>> Yes, POSIX shell. So, what do you get as an output with<br>
>><br>
>>   $ getent passwd sina<br>
>><br>
>> ?<br>
>><br>
>> Bash emulates POSIX shell with a specific behavior (you can read bash<br>
>> manual page, chapter INVOCATION, starting with "If bash is invoked with<br>
>> the name sh, it tries to mimic the startup behavior of  historical<br>
>> versions  of sh as closely as possible". In such case bash doesn't read<br>
>> own profile files and sets PS1 to something close to \s-\v\$ which is<br>
>> what you get in your sessions below:<br>
>><br>
>> >> >[root@node5 ~]# su - hofozor<br>
>> >> >-sh-4.1$ su - sina<br>
>> >> >Password:<br>
>> >> >-sh-4.1$<br>
>> >> >-sh-4.1$ pwd<br>
>> >> >/home/sina<br>
>><br>
>> --<br>
>> / Alexander Bokovoy<br>
>><br>
<br>
--<br>
/ Alexander Bokovoy<br>
</blockquote></div>