1. Login ke vps ente dengan akses root
2. Download script nya
Code:
wget http://drop.groundworlds.tk/file/userexp
3.sisipkan cron job
Code:
crontab -e
4.tekan 'i' (tanpa tanda kutip)/ i = insert
5.Copy dan paste skrip ini (ingat tekan huruf i dulu)
Code:
0 0 * * * sh /root/userexp
6. tekan tombol ESC
Lalu ketik :wq (shift+: then type wq)
#wq maksudnya write and quit
7.kalo sukses nanti dia muncul gambar dibawah ini
http://prntscr.com/2ix9pg
8.masukin command ini
Code:
crontab -l
=============================================
untuk unlock user tsb
cukup masukin command ini
Code:
passwd -u username
ex : passwd -u fikryans
=============================================
skrip ini akan berjalan 00.00 tengah malam,
user yang expired gan otomatis ke lock dan ga bisa dipake lagi.
dan tentu nya kita ga perlu repot2 disable/delete akun tsb
=============================================
Apabila tidak ada contrab di vpsnya coba install dulu:
yum -y install vixie-cron crontabs