-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-user.sh
More file actions
26 lines (25 loc) · 829 Bytes
/
create-user.sh
File metadata and controls
26 lines (25 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#082210988552
clear
echo ""
echo "-----------------MEMBUAT AKUN BY KERDUNET.TOP------------------"
echo ""
read -p "Username : " kerdunet
read -p "Password : " Pass
read -p "Expired (hari): " masaaktif
IP=`curl icanhazip.com`
useradd -e `date -d "$masaaktif days" +"%Y-%m-%d"` -s /bin/false -M $kerdunet
exp="$(chage -l $kerdunet | grep "Account expires" | awk -F": " '{print $2}')"
echo -e "$Pass\n$Pass\n"|passwd $kerdunet &> /dev/null
echo -e ""
echo -e "----------------------------"
echo -e "Data Login:"
echo -e "----------------------------"
echo -e "Host: $IP"
echo -e "PortSSH: 22, 143, 443, 109, 110"
echo -e "Squid: 80,8080,3128"
echo -e "Username: $kerdunet "
echo -e "Password: $Pass"
echo -e "Config OpenVPN: $IP:81/1194-client.ovpn"
echo -e "Aktif Sampai: $exp"
echo -e "----------------------------"