How to turn off system integrity protection on OS X (but don't)

Malware is a serious problem that requires a serious solution - in El Capitan it's called System Integrity Protection, and it's wreaking havoc with some system utilities that require "root" access to work.