|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 130 article |
2002-03-11 00:24:19 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
[BAN 24 hours] shell script |
|
|
#1/bin/bash
if [ $1 ]; then
if [ -d /home/$1 ]; then
date
chmod 700 /home/$1
ls -l /home |grep "$1"
echo "chmod 711 /home/$1" > /tmp/banlist
at tomorrow < /tmp/banlist
rm -rf /tmp/banlist
atq
else
echo "##### $1 id is not exist ######"
echo
ls /home
fi
else "##### usage : ban id ######"
fi
|
|
Page Loading [ 0.03 Sec ]
SQL Time [ 0 Sec ]
|
|
|