diff --git a/bin/v-add-user b/bin/v-add-user index 66730a3f7..630ae4720 100755 --- a/bin/v-add-user +++ b/bin/v-add-user @@ -22,7 +22,7 @@ source $VESTA/func/main.sh source $VESTA/conf/vesta.conf is_user_free() { - check_sysuser=$(cut -f 1 -d : /etc/passwd | grep -w "$user" ) + check_sysuser=$(cut -f 1 -d : /etc/passwd | grep "^$user$" ) if [ ! -z "$check_sysuser" ] || [ -e "$USER_DATA" ]; then check_result $E_EXISTS "user $user exists" fi