hapus.sh 247 B

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