View Single Post
Old 28th January 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Quote:
Originally Posted by nihonto View Post
Sorry, I don't get the point!
I set and export the variable PKG_PATH as user J65nko. That means that all subsequent commands will be able to see, and use the contents of PKG_PATH.

When I su root I switch user to 'root', but 'root' retains most of my environment, and thus the PKG_PATH variable.

However, a su - root simulates a full login as root, and discards most of j65nko's environment variables, including the PKG_PATH. That is why echo'ing PKG_PATH produces nothing.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote