diff options
author | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-19 18:25:02 -0400 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-06-19 18:25:02 -0400 |
commit | 6d39b726c0742d46bb697612c13dd77628e8362c (patch) | |
tree | dea7cd05e578812bbf19291feb995b5499548aa6 /src | |
parent | 7019354a75ca19ffd2e10f2e2b3dc89b480156bd (diff) |
Fix for better way to check for user on system.
Diffstat (limited to 'src')
-rwxr-xr-x | src/monkeysphere-server | 2 |
1 files changed, 1 insertions, 1 deletions
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 |