Sudo only for the bits that need it