Mac OS X Shell ENV Path differences

Anybody know where the besagent gets it’s ENV variables from on Mac OS X?

I am specifically interested in the “path” environmental variable. The standard root on our machines has a custom ENV PATH variable, but when the besagent runs an action it does not use the root’s env path, but instead it uses a very basic path.

Anyone know how to modify the env of the besagent, without doing it as part of the action for every action?

The path would be inherited from the Launch Daemon’s process so I’m not sure where

Doing a quick search indicates there is a conf file for the Launch Daemon

What about putting in the besagent launchd plist?

https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man5/launchd.plist.5.html#//apple_ref/doc/man/5/launchd.plist