sudoers file

I‘m typing the following command:

But, getting the error:

How do I fix this problem under Debian / Ubuntu / RHEL / CentOS Linux?

{ 0 comments }

I‘m not told to use the root user to perform activities that do not require it. I’ve configured sudo for myself and for other web developers so that they can restart MySQL or Apache web server. How do I send email when sudo run by one of my user? How do I keep track of user login done via sudo command?

{ 11 comments }

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

How do I fix this problem on Linux or Unix based systems?

{ 7 comments }