Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wTjKd-000iaF-2k for pgsql-bugs@arkaria.postgresql.org; Sun, 31 May 2026 16:48:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wTjJb-007nwD-2u for pgsql-bugs@arkaria.postgresql.org; Sun, 31 May 2026 16:47:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wTjJb-007nw5-1o for pgsql-bugs@lists.postgresql.org; Sun, 31 May 2026 16:47:08 +0000 Received: from smtp-16.smtpout.orange.fr ([80.12.242.16] helo=smtp.smtpout.orange.fr) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wTjJZ-00000000VIJ-1wpC for pgsql-bugs@lists.postgresql.org; Sun, 31 May 2026 16:47:07 +0000 Received: from [192.168.1.7] ([86.245.17.50]) by smtp.orange.fr with ESMTPSA id TjJXwmnm3lc4mTjJXwf7PI; Sun, 31 May 2026 18:47:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1780246024; bh=gOAaWp6v+bM3zCkJvUwUCGmji/7F9+QsZYL3munqsB4=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=OiyvyR1321d+LR3aWfS/n/CH1VI9PogjpBZMjYDTxMDzr2HxhULSexmMAoIvQYKvI TzWiybKEajr1KRsy8UzstDRtpX5gXX0ZvZZS1wmpf7fl8FwcbcQrv9uFEdk3pfJpw2 6mtfUvGA0u4lkbu5cHK4cObWjSqDzKfEkwxrYe+aC4P1wArFvUSX7IzCaMNdDxkCvS lEYs6EyfHQSGnxZ5mp6OeJYmQRdDQbLlWBE1xf96GnKF69BLTwxBF9t3/WfwKL23ec 5+M3LnckVojocruc3T3WZ7djKQXmNe6jjmktVWFA+FbYbsUkHWI/la7JAda81L/zP0 IY2P85iUlzDvA== X-ME-Helo: [192.168.1.7] X-ME-Auth: cGllcnJlLmp1aGVuQG9yYW5nZS5mcg== X-ME-Date: Sun, 31 May 2026 18:47:04 +0200 X-ME-IP: 86.245.17.50 Content-Type: multipart/alternative; boundary="------------qZGaSoSUtO4ecD7aXw0pHRKB" Message-ID: Date: Sun, 31 May 2026 18:47:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BUG #19502: unix_socket_group doesn't work anymore To: pgsql-bugs@lists.postgresql.org References: <19502-7f29e169bb2eda2c@postgresql.org> Content-Language: fr, en-GB, en-US From: Pierre Juhen In-Reply-To: <19502-7f29e169bb2eda2c@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------qZGaSoSUtO4ecD7aXw0pHRKB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Please forget this stupid question. I forgot a usermod to allow postgres to be in the palin user group Shame on me. Pierre Le 31/05/2026 à 16:41, PG Bug reporting form a écrit : > The following bug has been logged on the website: > > Bug reference: 19502 > Logged by: Pierre Juhen > Email address:pierre.juhen@orange.fr > PostgreSQL version: 16.3 > Operating system: Linux > Description: > > Hi, > > I developped an application on Alma Linux 9 and PostgreSQL 13. > > I want to maintain it up to date, and try to "port" it to Alma Linux 10 and > PostgreSQL 16.13 > > Previously the appplication run under the identity of a plain user. The Unix > socket (/var/run/postgresql/.s.PGSQL.5432) was owned by postgres and the > group was that plain user one. > > Now, postgreSQL refuses to launch with the following error : > > 2026-05-30 23:59:27.178 CEST [5163] LOG: n'a pas pu initialiser le groupe > du fichier « /var/run/postgresql/.s.PGSQL.5432 » : Opération non permise > 2026-05-30 23:59:27.178 CEST [5163] ATTENTION: n'a pas pu créer la socket > de domaine Unix dans le répertoire « /var/run/postgresql » > 2026-05-30 23:59:27.180 CEST [5163] LOG: n'a pas pu initialiser le groupe > du fichier « /tmp/.s.PGSQL.5432 » : Opération non permise > 2026-05-30 23:59:27.180 CEST [5163] ATTENTION: n'a pas pu créer la socket > de domaine Unix dans le répertoire « /tmp » > 2026-05-30 23:59:27.180 CEST [5163] FATAL: n'a pas pu créer les sockets de > domaine Unix > > Translated by google in english : > > 2026-05-30 23:59:27.178 CEST [5163] LOG: Could not initialize the group for > the file '/var/run/postgresql/.s.PGSQL.5432': Operation not permitted > 2026-05-30 23:59:27.178 CEST [5163] WARNING: Could not create the Unix > domain socket in the directory '/var/run/postgresql' > 2026-05-30 23:59:27.180 CEST [5163] LOG: Could not initialize the group for > the file '/tmp/.s.PGSQL.5432': Operation not permitted > 2026-05-30 23:59:27.180 CEST [5163] WARNING: Could not create the socket > Unix domain in the "/tmp" directory > 2026-05-30 23:59:27.180 CEST [5163] FATAL: Could not create Unix domain > sockets > > If I comment unix_socket_group in postgresql.conf, the system starts without > any problem. > > The postgres heading process has got the right chown capability (cap_chown) > > I don't undestand what append. > > The same problem occurs with my development machine (Fedora 44 and and > PostgreSQL 18.3). > > Recent changes in the kernel ? > > Any help would be welcome. > > Thanks, > > Pierre > > --------------qZGaSoSUtO4ecD7aXw0pHRKB Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Please forget this stupid question.

I forgot a usermod to allow postgres to be in the palin user group

Shame on me.

Pierre

Le 31/05/2026 à 16:41, PG Bug reporting form a écrit :
The following bug has been logged on the website:

Bug reference:      19502
Logged by:          Pierre Juhen
Email address:      pierre.juhen@orange.fr
PostgreSQL version: 16.3
Operating system:   Linux
Description:        

Hi,

I developped an application on Alma Linux 9 and PostgreSQL 13.

I want to maintain it up to date, and try to "port" it to Alma Linux 10 and
PostgreSQL 16.13

Previously the appplication run under the identity of a plain user. The Unix
socket (/var/run/postgresql/.s.PGSQL.5432)  was owned by   postgres and the
group was that plain user one.

Now, postgreSQL refuses to launch with the following error :

2026-05-30 23:59:27.178 CEST [5163] LOG:  n'a pas pu initialiser le groupe
du fichier « /var/run/postgresql/.s.PGSQL.5432 » : Opération non permise
2026-05-30 23:59:27.178 CEST [5163] ATTENTION:  n'a pas pu créer la socket
de domaine Unix dans le répertoire « /var/run/postgresql »
2026-05-30 23:59:27.180 CEST [5163] LOG:  n'a pas pu initialiser le groupe
du fichier « /tmp/.s.PGSQL.5432 » : Opération non permise
2026-05-30 23:59:27.180 CEST [5163] ATTENTION:  n'a pas pu créer la socket
de domaine Unix dans le répertoire « /tmp »
2026-05-30 23:59:27.180 CEST [5163] FATAL:  n'a pas pu créer les sockets de
domaine Unix

Translated by google in english :

2026-05-30 23:59:27.178 CEST [5163] LOG: Could not initialize the group for
the file '/var/run/postgresql/.s.PGSQL.5432': Operation not permitted
2026-05-30 23:59:27.178 CEST [5163] WARNING: Could not create the Unix
domain socket in the directory '/var/run/postgresql'
2026-05-30 23:59:27.180 CEST [5163] LOG: Could not initialize the group for
the file '/tmp/.s.PGSQL.5432': Operation not permitted
2026-05-30 23:59:27.180 CEST [5163] WARNING: Could not create the socket
Unix domain in the "/tmp" directory
2026-05-30 23:59:27.180 CEST [5163] FATAL: Could not create Unix domain
sockets

If I comment unix_socket_group in postgresql.conf, the system starts without
any problem.

The postgres heading process has got the right chown capability (cap_chown)

I don't undestand what append.

The same problem occurs with my development machine (Fedora 44 and and
PostgreSQL 18.3).

Recent changes in the kernel ?

Any help would be welcome.

Thanks,

Pierre


--------------qZGaSoSUtO4ecD7aXw0pHRKB--