We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bfb6b73 + ec7994a commit 745769dCopy full SHA for 745769d
bin/v-add-user
@@ -22,7 +22,7 @@ source $VESTA/func/main.sh
22
source $VESTA/conf/vesta.conf
23
24
is_user_free() {
25
- check_sysuser=$(cut -f 1 -d : /etc/passwd | grep -w "$user" )
+ check_sysuser=$(cut -f 1 -d : /etc/passwd | grep "^$user$" )
26
if [ ! -z "$check_sysuser" ] || [ -e "$USER_DATA" ]; then
27
check_result $E_EXISTS "user $user exists"
28
fi
0 commit comments