修复用户bug
This commit is contained in:
parent
470500cc0d
commit
1dc291725b
@ -77,7 +77,7 @@ case $pick in
|
|||||||
echo "系统内没有该用户"
|
echo "系统内没有该用户"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
sed -i "s/^#\?$user_name.*/d" /etc/sudoers &> /dev/null
|
sed -i "/^#\?$user_name.*/d" /etc/sudoers &> /dev/null
|
||||||
pkill -u $user_name
|
pkill -u $user_name
|
||||||
userdel -r $user_name &> /dev/null
|
userdel -r $user_name &> /dev/null
|
||||||
rm -rf "/home/${user_name}"
|
rm -rf "/home/${user_name}"
|
||||||
|
Loading…
Reference in New Issue
Block a user