[SECURITY] [DSA 946-1] New sudo packages fix privilege escalation
I got this security update with aptitude on my own Debian GNU/Linux server and now when I use VIM with sudo (I think) sudo no longer passes the $HOME variable over to VIM, and VIM looks for $HOME/.viminfo by default. I guess $HOME is set to NULL inside sudo, so whenever I exit VIM it bitches about not being able to write to my viminfo file. (for more info about viminfo errors go here and search for the string viminfo-errors)
To fix this I have to do `sudo vi -i ~/.viminfo`, or `sudo -H vim`… for now I will alias “sudo” to “sudo -H”…
Update: after looking at the manpages more, if I set the “always_set_home” flag in my sudoers it will imply “-H” all the time, very nice.