diff --git a/bin/vhost-user-get.sh b/bin/vhost-user-get.sh index 0c213f4..02d3b84 100755 --- a/bin/vhost-user-get.sh +++ b/bin/vhost-user-get.sh @@ -59,7 +59,7 @@ do password="(unknown)" fi fi - shell=(`grep $username /etc/passwd|awk -F : '{ print $6 }'`) + shell=(`grep ^$username: /etc/passwd|awk -F : '{ print $6 }'`) if [[ $shell = "/usr/jails/$username/./home/$username" ]]; then jailed="Yes" else