[sudo-users] executing with different user environment

Todd C. Miller Todd.Miller at courtesan.com
Sun Mar 17 10:50:00 MDT 2013

On Sat, 16 Mar 2013 21:37:38 -0400, Matt Williams wrote:

> ah, you're right! printenv HOME did show the correct environment (chef) and
> not my own. Unfortunately, that leaves me more puzzled as to why knife is
> not interpreting it correctly.

You could try comparing the output of "sudo -u chef printenv" against
"sudo -iu chef printenv" and see if anything jumps out at you.

 - todd

More information about the sudo-users mailing list