diff --git a/src/backend/libpq/be-secure-common.c b/src/backend/libpq/be-secure-common.c index e8b837d1fa..fed399ad03 100644 --- a/src/backend/libpq/be-secure-common.c +++ b/src/backend/libpq/be-secure-common.c @@ -161,7 +161,7 @@ check_ssl_key_file_permissions(const char *ssl_key_file, bool isServerStart) return false; } - if ((buf.st_uid == geteuid() && buf.st_mode & (S_IRWXG | S_IRWXO)) || + if ((buf.st_uid == geteuid() && buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) || (buf.st_uid == 0 && buf.st_mode & (S_IWGRP | S_IXGRP | S_IRWXO))) { ereport(loglevel,