Ricing sudo command

less than 1 minute read

Published:

Amazing warning

sudo -i
wget http://caferock.org/chris/groot.txt -O /etc/sudoers.d/sudoers.lecture

sudo visudo -f /etc/sudoers.d/privacy

## add the following lines
Defaults     lecture = always
Defaults     lecture_file = /etc/sudoers.d/sudoers.lecture    

## reboot your system and enjoy

More detail here.

Without password

sudo visudo

## add the following line to the end of the file
<username> ALL=(ALL) NOPASSWD:ALL

## Ex
logbasex ALL=(ALL) NOPASSWD:ALL

## open new terminal and enjoy.

Thank for reading.