Sorry, you must have a tty to run sudo

1. Open /etc/sudoers
2. Comment the line “Defaults requiretty”
3. Save

Advertisements