Script Auto Expired dropbear (Centos 6)


SUBMITTED BY: silvacrash

DATE: July 6, 2018, 11:45 a.m.

FORMAT: Text only

SIZE: 1.0 kB

HITS: 10261

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

comments powered by Disqus