This video guide by Codeguard https://www.youtube.com/watch?v=-IQo23e_LAM instructs adding this line in visudo:
codeguarduser ALL=(ALL) ALL
Just confirming if this is the recommended way? How about giving all read-only permissions?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.