fixed annoying sudo side effects

Summary:

Test Plan:

Reviewers:

CC:

Task ID: #

Blame Rev: