make passwd grep an exact match
This commit is contained in:
parent
590fd23f40
commit
6046476e79
@ -59,7 +59,7 @@ do
|
|||||||
password="(unknown)"
|
password="(unknown)"
|
||||||
fi
|
fi
|
||||||
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
|
if [[ $shell = "/usr/jails/$username/./home/$username" ]]; then
|
||||||
jailed="Yes"
|
jailed="Yes"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user