How to run sudo command without a password on a Linux or Unix

Posted on in Categories , , , , , , last updated April 18, 2017

I‘m a new Unix system user. How do I use sudo command without a password on a Linux or Unix-like systems? I log in as [email protected] and disabled root login for ssh. After login, I need to run some commands as root user. I am the only sysadmin using my server. How do I run or execute sudo command without a password for a user named Tom under Debian/Ubuntu/CentOS Linux cloud server?

UNIX / Linux: Send E-mail When sudo Runs

Posted on in Categories , , , , , , , , , , , last updated July 1, 2009

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?

Sudo is Not Prompting For a Password When Re-executed Second Time

Posted on in Categories , , , , , , , , , , , last updated May 2, 2012

I use sudo to provide permissions and command execution rights to other users under UNIX and Linux operating systems. However, I noticed something strange about sudo. When executing sudo, it will prompt for the user’s password the first time, but sudo no longer requires a password anymore when re-executing it. Why? Is this is a security risk?