Eric
2010-06-28 20:12:22 UTC
On my S8 system when I su to root I get an odd PATH environment. It's
not inheriting the path from the original user and it doesn't seem to
be picking up anything from root's .profile, .cshrc or .login (which
is absent anyway).
My questions: When I su (to root) where is root getting its path
from? Note I'm not using the "-" option (I'm not the only person who
has to do this and no one here's going to remember it anyway). The
man page for "su" says it's supposed to inherit the original user's
path but that doesn't seem to be true.
What file(s) do I need to edit to get the path I want when I su to
root (again, without the "-" option)?
TIA
eric
not inheriting the path from the original user and it doesn't seem to
be picking up anything from root's .profile, .cshrc or .login (which
is absent anyway).
My questions: When I su (to root) where is root getting its path
from? Note I'm not using the "-" option (I'm not the only person who
has to do this and no one here's going to remember it anyway). The
man page for "su" says it's supposed to inherit the original user's
path but that doesn't seem to be true.
What file(s) do I need to edit to get the path I want when I su to
root (again, without the "-" option)?
TIA
eric