user's PATH inherited by root when su
I added a new bin dir to my $PATH in ~/.bash_profile , the user is able to find that new dir fine but when I 'su' as root, it does not find that dir. So how to make root find that dir other than add dir to ROOT/.bash_profile and use "su -" ? Thanks in advance
|