Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

sudo vim means vim gets root privileges. Meaning vim can do anything it wants if it's bugged or somehow compromised. Not likely on an otherwie secure system but not impossible.

sudoedit (according to the manpage) makes a copy of the file first, lets your editor edit it, then copies back when you're done -- so even a compromised editor couldn't do much damage beyond corrupting the given file.



That's awesome I never knew that; thanks so much for explaining it!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: