make passwd grep an exact match
This commit is contained in:
parent
590fd23f40
commit
6046476e79
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user