-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhapus.sh
More file actions
23 lines (21 loc) · 1023 Bytes
/
hapus.sh
File metadata and controls
23 lines (21 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#Script to Remove Users on SSH and OpenVPN
clear
echo -e " "
echo -e "\e[94m ::::::::: :::::::::: ::::::::: ::::::::::: "
echo -e "\e[94m :+: :+: :+: :+: :+: :+: :+: "
echo -e "\e[94m +:+ +:+ +:+ +:+ +:+ +:+ "
echo -e "\e[94m +#+ +:+ +#++:++# +#++:++#+ +#+ "
echo -e "\e[94m +#+ +#+ +#+ +#+ +#+ +#+ "
echo -e "\e[94m #+# #+# #+# #+# #+# #+# "
echo -e "\e[94m ######### ########## ######### ### "
echo -e "\e[94m Deb7AutoScriptVPS by Shigeno "
echo -e "\e[0m "
echo -e ""
read -p " Username to be removed : " Pengguna
if getent passwd $Pengguna > /dev/null 2>&1; then
userdel $Pengguna
echo -e " User $Pengguna has been deleted successfully."
else
echo -e " Error: User $Pengguna is not on the User list."
fi