forked from fisabiliyusri/Mantap
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvpsroot.sh
30 lines (30 loc) · 979 Bytes
/
vpsroot.sh
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
27
28
29
30
#!/bin/bash
# Mod By SL
wget -qO- -O /etc/ssh/sshd_config https://raw.githubusercontent.com/fisabiliyusri/Mantap/main/sshd_config;
systemctl restart sshd;
clear;
echo -e "Masukkan Password:";
read -e pwe;
usermod -p `perl -e "print crypt("$pwe","Q4")"` root;
#echo -e "Masukan Nama User Akun Baru";
#read -p "Password : " Pass
#read -e crot;
#sudo useradd -s /bin/bash -d /home/$crot/ -m -G sudo $crot;
#echo -e "$Pass\n$Pass\n"|passwd $crot &> /dev/null
#usermod -p `perl -e "print crypt("$Pass","Q4")"` $crot;
#usermod -aG sudo $crot;
#echo "$crot ALL=(ALL:ALL) ALL" >> /etc/sudoers;
clear;
printf "Mohon Simpan Informasi Akun VPS Ini
============================================
Akun Root (Akun Utama)
Ip address = $(curl -Ls http://ipinfo.io/ip)
Username = root
Password = $pwe
============================================
User Akun Baru Dengan Akses Root (Akun Baru)
Username = $crot
Password = $Pass
============================================";
echo "";
exit;