≡ Menu


FreeBSD: Install sudo Command To Execute A Command As The Root

I have recently started to managing FreeBSD server along with Ubuntu Linux. However, sudo command, always shows me the following error:

zsh: command not found: sudo

How do I solve this problem and use sudo under FreeBSD 9.x system?
[click to continue…]

sudo: Sorry, you must have a tty to run sudo Error on a Linux and Unix

I'm trying to run the following command:

ssh user@box.example.com sudo command1 /path/to/file

But, an error is displayed follows:

sudo: sorry, you must have a tty to run sudo


sudo: no tty present and no askpass program specified

How do I fix this problem on Linux or Unix based systems?
[click to continue…]