1

switch user (su) not sourcing the profile

view story
linux-howto

http://www.unix.com – Usually in solaris/Linux servers , when you do an su - username (space before and after the hyphen) the user's .profile should get sourced. But in the below linux machine it is not. As you see below ORACLE_HOME variable is not being set. Code: # uname -a Linux revaltb214 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux # # cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.6 (Tikanga) # # whoami root # # # echo #0 -bash # # su - oracle                  # ------> it is supposed to source orac (HowTos)