I have a user, say
user1, which has modifications to its
.bash_profile, one of them changing the
export PATH=/some/place:$PATH. This change works fine if I log on as
user1 or do a
su - user1.
But if I try to run a command via
su -c test.sh oracle
It doesn't seem to have the modified
PATH (or the root's
PATH, for that matter). I've also tried copying
.profile, to no avail.
Why is this happening?