Added sudo commands where appropriate [skip ci]