X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fmonkeysphere-server;h=693c062d5554fd858a8671e1fb303536d86a6f4c;hb=f659da8ba2e184a9eb60da2d65c1e81c33f06772;hp=a9a9aed5019b390b0b2309e1390e6915338dfd28;hpb=ad83c56cbab054c36ec854bf9cc2e0be530fce72;p=monkeysphere.git diff --git a/src/monkeysphere-server b/src/monkeysphere-server index a9a9aed..693c062 100755 --- a/src/monkeysphere-server +++ b/src/monkeysphere-server @@ -163,7 +163,7 @@ case $COMMAND in MODE="authorized_keys" # check all specified users exist - if ! getent passwd | cut -d: -f1 | grep -q "^${uname}$" ; then + if ! getent passwd "$uname" >/dev/null ; then error "----- unknown user '$uname' -----" continue fi