Only apply using sudo when not running as root