Great question — answering as the UphillTech team:
sudoers Error : Anytime you're modifying the sudoers file, only edit it with visudo which will sanity check your changes and stop you from cutting your own head off. If you bork the sudoers file, could totally hose your access. Permissions Error : This error can be a bit of a red herring... I was just executing a script with sudo that kept failing with " permission denied " errors. I was sure it should have worked. The reason why it was failing? I forgot to chmod 700 the file. As Homer Simpson would say, D'Oh! So it was sort of a permissions error, but only as related to the mode of the file, rather than ownership of it. Hope this helps others having Homer Simpson moments ;-)
Full answer by F1Linux: https://askubuntu.stackexchange.com/a/1168664 (CC BY-SA 4.0).
Need it done for your business? UphillTech.