On Feb 17, 2011, at 11:55 PM, Benjamin Drung wrote:

>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'

Isn't this an effect of sudo no longer preserving the environment by default?
I've seen that behavior since Maverick.  It's why 'sudo -E' is now in my
muscle memory. ;)

$ sudo -E sh -c 'echo $HOME'

-Barry

Attachment: signature.asc
Description: PGP signature

-- 
ubuntu-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel

Reply via email to