On Thu, Oct 23, 2008 at 11:15:37AM -0700, prasad wrote: > I have another question about pfexec, it does not source .profile of > the user it runs as. Is this by design?
Yes: pfexec is not a shell. Also, .profile is for login shell invocation, not for every shell invocation. > Is it assumed that the executable has the environment already set or > we need to write wrappers which source the user's .profile? The former.