初始化github库

This commit is contained in:
guanghongwei
2014-08-14 17:22:25 +08:00
parent 9d6a3b6e0b
commit ef12ea5f02
139 changed files with 14667 additions and 238 deletions

19
sudodel.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
username=$1
password=$2
cwd (){
dir=$0
dirname $dir
}
dir=$(cwd)
. ${dir}/shell.conf
id $username &> /dev/null
if [ $? == '0' ];then
userdel -r $username
else
echo "$username is not exist."
exit 3
fi
ldapdelete -x -h $host -D "cn=admin,dc=yolu,dc=com" -w $ldapassword "cn=$username,ou=Sudoers,dc=yolu,dc=com"