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@node5 ~]# su - hofozor
>-sh-4.1$ su - sina
>Password:
>-sh-4.1$
>-sh-4.1$ pwd
>/home/sina

--
/ Alexander Bokovoy

--
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project

Reply via email to