From 98e117038e4161336ef591dc24ce15136ededd43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= Date: Thu, 13 Jul 2023 19:18:40 +0200 Subject: [PATCH] Use bash as login shell for postgres user System users should use the nologin shell to deny logging as those are not interactive users but a lot of existing documentation incorreclty uses 'su' or 'sudo su' to create a shell under the postgres user for PostgreSQL management. Revert back to using '/bin/bash' as the login shell. See: https://src.fedoraproject.org/rpms/postgresql/pull-request/60 Fixes: 3646f8d Use sysusers configuration to setup user & group --- postgresql.spec | 5 ++++- postgresql.sysusers | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/postgresql.spec b/postgresql.spec index bba3086..a52718d 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -65,7 +65,7 @@ Summary: PostgreSQL client programs Name: postgresql %global majorversion 15 Version: %{majorversion}.3 -Release: 6%{?dist} +Release: 7%{?dist} # The PostgreSQL license is very similar to other MIT licenses, but the OSI # recognizes it as an independent license, so we do as well. @@ -1262,6 +1262,9 @@ make -C postgresql-setup-%{setup_version} check %changelog +* Thu Jul 13 2023 Timothée Ravier - 15.3-7 +- Use bash as login shell for postgres user + * Thu Jul 13 2023 František Zatloukal - 15.3-6 - Rebuilt for ICU 73.2 diff --git a/postgresql.sysusers b/postgresql.sysusers index b012e87..afc7799 100644 --- a/postgresql.sysusers +++ b/postgresql.sysusers @@ -1 +1 @@ -u postgres 26 "PostgreSQL Server" /var/lib/pgsql +u postgres 26 "PostgreSQL Server" /var/lib/pgsql /bin/bash