Remove sudo usage from Security Guide

Remove sudo usage and adjust prompts as needed.
Also fix some programlisting markup.

Change-Id: Ic2ba237a8e04f878ef62b91be864fbaf6e6b6916
Merge "Remove sudo usage from Security Guide"