hapus.sh 240 B

123456789
  1. #!/bin/bash
  2. read -p "Username SSH to Delete : " Pengguna
  3. if getent passwd $Pengguna > /dev/null 2>&1; then
  4. userdel $Pengguna
  5. echo -e "User $Pengguna was removed."
  6. else
  7. echo -e "Failure: User $Pengguna Not Exist."
  8. fi