sudo as necessary

[#68008022] https://www.pivotaltracker.com/story/show/68008022