diff --git a/PostgreSQL/Classes/PGServerController.m b/PostgreSQL/Classes/PGServerController.m index f0f7aeb..4dba1d7 100644 --- a/PostgreSQL/Classes/PGServerController.m +++ b/PostgreSQL/Classes/PGServerController.m @@ -266,7 +266,7 @@ - (BOOL)validateSettingsForServer:(PGServer *)server authorization:(Authorizatio } // Username - if (NonBlank(settings.username) && ![PGProcess runShellCommand:[NSString stringWithFormat:@"id -u %@", settings.username] forRootUser:YES authorization:authorization authStatus:authStatus error:error]) { + if (NonBlank(settings.username) && ![PGProcess runShellCommand:[NSString stringWithFormat:@"id -u %@ >/dev/null", settings.username] forRootUser:YES authorization:authorization authStatus:authStatus error:error]) { settings.invalidUsername = @"No such user"; }