Thread: ownership of "/var/run/postgresql"

ownership of "/var/run/postgresql"

From
Dmitry O Litvintsev
Date:
Hi,

we run 9.6 postgresql DB on Linux box. We run as different user than postgres. To get it to work we had to chown
/var/run/postgresqlto be owned by the process user.  

Upgraded to 11 and now we see that file

/var/run/postgresql changes ownership to postgres:postgres on reboot , even though postgresql-11.service is disabled.

What is doing it and is it possible to disable it?

Thanks,
Dmitry




Re: ownership of "/var/run/postgresql"

From
Christoph Moench-Tegeder
Date:
## Dmitry O Litvintsev (litvinse@fnal.gov):

> Upgraded to 11 and now we see that file 
> 
> /var/run/postgresql changes ownership to postgres:postgres on reboot ,
> even though postgresql-11.service is disabled. 

That's /usr/lib/tmpfiles.d/postgresql.conf (or similar). Don't
edit that file, see "man 5 tmpfiles.d" on how to override that
file and general info on the format.

Regards,
Christoph

-- 
Spare Space