$HOME changed by sudo

Bryce Harrington bryce at canonical.com
Thu Feb 17 23:07:37 UTC 2011


On Thu, Feb 17, 2011 at 11:55:04PM +0100, Benjamin Drung wrote:
> Hi,
> 
> I detected that sudo in natty changes $HOME to /root [1]. Is this a bug
> or a changed configuration?
> 
> It had the bad side effect that "sudo pbuilder" didn't find
> ~/.pbuilderrc.
> 
> [1] sudo sh -c 'echo $HOME'

I noticed this with pbuilder myself.  I opted to just move my
.pbuilderrc to /root.  It would be useful to know if this is an intended
change (which probably should be mentioned/justified in Release Notes)
or a bug (which seems like an important one to get fixed before
release).

Bryce



More information about the ubuntu-devel mailing list