00.as_root-remove_doas_password.sh 187 B

1234567891011
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. pacman -Sy opendoas
  7. read -rp "Enter user name: " username
  8. echo "permit nopass ${username} as root" >> /etc/doas.conf