[Freeipa-users] Creating Home directories still presents as -sh-4.1$ after changing oddjob mask
Sina Owolabi
notify.sina at gmail.com
Thu Jan 22 10:43:12 UTC 2015
Sorry I was misunderstood. The umm.../bin/sh? Was me being sheepish after
causing all the ruckus this morning.
-sh-4.1$ getent passwd sina
sina:*:392100000:392100000:Sina Owolabi:/home/sina:/bin/sh
How do I change the default to /bin/bash?
On Thu Jan 22 2015 at 11:37:03 AM Alexander Bokovoy <abokovoy at redhat.com>
wrote:
> On Thu, 22 Jan 2015, Sina Owolabi wrote:
> >Umm... /bin/sh?
> Yes, POSIX shell. So, what do you get as an output with
>
> $ getent passwd sina
>
> ?
>
> Bash emulates POSIX shell with a specific behavior (you can read bash
> manual page, chapter INVOCATION, starting with "If bash is invoked with
> the name sh, it tries to mimic the startup behavior of historical
> versions of sh as closely as possible". In such case bash doesn't read
> own profile files and sets PS1 to something close to \s-\v\$ which is
> what you get in your sessions below:
>
> >> >[root at node5 ~]# su - hofozor
> >> >-sh-4.1$ su - sina
> >> >Password:
> >> >-sh-4.1$
> >> >-sh-4.1$ pwd
> >> >/home/sina
>
> --
> / Alexander Bokovoy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-users/attachments/20150122/776d864b/attachment.htm>
More information about the Freeipa-users
mailing list