00.as_root-remove_sudo_password.sh 286 B

123456789101112131415
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. echo "Open another terminal emulator and run command:"
  7. echo " $ sudo visudo"
  8. echo "And change line:"
  9. echo " %admin ALL=(ALL) ALL"
  10. echo "To"
  11. echo " %admin ALL=(ALL) NOPASSWD: ALL"
  12. read -p "Press enter to continue"