- How to edit the sudoers file
sudo: sorry, you must have a tty to run sudo
sudo: foo : user NOT in sudoers
maybe you tried including a file like /etc/sudoers.d/foo.conf ?
enable file after adding to /etc/sudoers.d/
visudo -v /etc/sudoers.d/myfile
%sudo ALL=(ALL) NOPASSWD: ALL