Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 422831

Summary: >=dev-db/postgresql-server-9.1: /run/postgresql directory has wron permissions
Product: Gentoo Linux Reporter: Marc Schiffbauer <mschiff>
Component: Current packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marc Schiffbauer gentoo-dev 2012-06-21 11:37:24 UTC
Postgres normally allows access via socket for local users if a line of type "local" with method "trust" exists for a user/database pair in the pg_hba.conf file.

However: The current default permissions of /run/postgresql - where the socket lives - do not allow any user to access the socket.

Please change permission from 

drwxrwx--- 2 postgres postgres 80 21. Jun 13:12 /run/postgresql

to

drwxrwx--x 2 postgres postgres 80 21. Jun 13:12 /run/postgresql
Comment 1 Aaron W. Swenson gentoo-dev 2012-06-21 12:14:14 UTC
The post-install message and the how-to document that the Linux user must be in the 'postgres' group.

pg_hba.conf only defines rules for PostgreSQL roles.

*** This bug has been marked as a duplicate of bug 395331 ***