23 February 2016

Using vi with cron

Override default editor used by crontab or root
VISUAL=vi crontab -e

Giving Power the Corect Way

The correct way to appoint sudoers is by putting the definition in /etc/sudoers.d/filename-init

The content would look something like this.
newusername ALL=(ALL) NOPASSWD:ALL