[Freeipa-users] Creating Home directories still presents as -sh-4.1$ after changing oddjob mask

Alexander Bokovoy abokovoy at redhat.com
Thu Jan 22 10:36:58 UTC 2015


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




More information about the Freeipa-users mailing list