Error Message : sudo: sorry, you must have a tty to run sudo solution : # visudo mark the following line Defaults requiretty It might exist a security issue.