hapus.sh 274 B

123456789101112
  1. #!/bin/bash
  2. #Script to remove SSH & OpenVPN users
  3. read -p "SSH user name will be deleted : " Users
  4. if getent passwd $Users > /dev/null 2>&1; then
  5. userdel $Users
  6. echo -e "User $Users was removed."
  7. else
  8. echo -e "FAILED: there is no User $Users ."
  9. fi