Properly manage sudo