when I su the root privilege, the $PATH variable changed
which file control this variable, it's different between su $PATH and login root $PATH, I thought they should be the same, but it's not.
excuse for my poor english, here is the example
login:user1
password:
echo &PATH
PATH=/111:/555
su
password:
echo $PATH
PATH=/111:/222
exit
logout
login:root
password:
echo $PATH
PATH=/333:/444
I am sure user1's $PATH is not the same with su $PATH
but why root $PATH is different from su $PATH?
I am using SuSe 8.2 and bash