SCRIPT AUTO EXPIRE DROPBEAR USER -- by Mikodemos Ragil - TESTED CENTOS !!

what is this ??

this script will lock and block all expired dropbear user by their expire time.

this file work as a cron job on your Centos VPS

Let's start - LOGIN with your root
1. Get this file to your root directory
wget http://drop.groundworlds.tk/file/userexp 
2. insert cron job
crontab -e
PUSH  i button on your keyboard (this is vi command/not nano)
NB: i = insert

copy and paste this (REMEMBER MUST PUSH i on your KEYBOARD FIRST)
0 0 * * * sh /root/userexp  
now, push ESC button on your keyboard
and then
type (KETIK) :
 :wq
NB: wq = write and quit, means now u have save it.
if success there will be notif like picture below:
ENSURE IT BY entering this command
 crontab -l
as you can see below, the script successfully listed on crontab
this script will run every day on 00.00 midnight

expired user will be locked (their password) automatically , so they can't use their account again

for unlocking the user just type :
 passwd -u theirname

Done.

Nimbuzz Hijau

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.

Tidak ada komentar:

Posting Komentar