When you execute shell script from a browser or a ssh connection without password, if you got an error sudo sorry, you must have a tty to run sudo.

Continue Reading...