Vauxoo / docker-odoo-image

Base docker image for instances
GNU General Public License v2.0
18 stars 29 forks source link

odoo-shippable image: postgres user doesn't have PostgreSQL configuration file access #327

Closed moylop260 closed 5 years ago

moylop260 commented 6 years ago

Saw

docker run -it --rm vauxoo/odoo-80-image-shippable-auto ls -lah /etc/postgresql-common/common-vauxoo.conf
-rw-r--r-- 1 root root 472 Jul  8 01:01 /etc/postgresql-common/common-vauxoo.conf

Expected postgres group access to this file

luisg123v commented 6 years ago

@moylop260
Are you sure this is not an expected behavior?

Config files are usually owned by root.

moylop260 commented 5 years ago

The postgresql service is executed with the postgres user. If postgres doesn't have permission then never will use it.

moylop260 commented 5 years ago

what do you think @ruiztulio

ruiztulio commented 5 years ago

@moylop260 The postgres user have permissions to read the file, as ponted by @luisg123v that is the standard permission pattern for postgres, the file is owned by root and is read only for the group and other users: -(rw-)(r--)(r--).

The postgres user can't change it and this is expected behavior, but is able to read it

moylop260 commented 5 years ago

For record, use root user if you like change this file and reload postgresql configuration: