From: | Stephen Frost <sfrost(at)snowman(dot)net> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Noah Misch <noah(at)leadboat(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>, Robert Haas <robertmhaas(at)gmail(dot)com>, David Steele <david(at)pgmasters(dot)net>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Adam Brightwell <adam(dot)brightwell(at)crunchydatasolutions(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Petr Jelinek <petr(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Additional role attributes && superuser review |
Date: | 2016-01-17 18:57:22 |
Message-ID: | 20160117185722.GF3685@tamriel.snowman.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
* Bruce Momjian (bruce(at)momjian(dot)us) wrote:
> On Sun, Jan 17, 2016 at 01:49:19PM -0500, Stephen Frost wrote:
> > * Bruce Momjian (bruce(at)momjian(dot)us) wrote:
> > > > pgbackrest:
> > > >
> > > > To run pgbackrest as a non-superuser and not the 'postgres' system
> > > > user, grant the pg_backup role to the backrest user and ensure the
> > > > backrest system user has read access to the database files (eg: by
> > > > having the system user be a member of the 'postgres' group):
> > > ------
> > >
> > > Just to clarify, the 'postgres' OS user group cannot read the data
> > > directory, e.g.
> > >
> > > drwx------ 19 postgres staff 4096 Jan 17 12:19 data/
> > > ^^^group
> > >
> > > I assume we don't want to change that.
> >
> > This is going to be distribution dependent, unfortunately. On
> > Debian-based distributions, the group is 'postgres' and it'd be
> > perfectly reasonable to allow that group to read the data directory.
>
> Well, while the group name would be OS-dependent, the lack of any group
> permisions in not OS-dependent and is forced by initdb:
>
> umask(S_IRWXG | S_IRWXO);
>
> create_data_directory();
Right, we also check in the backend on startup for certain permissions.
I don't recall offhand if that's forced to 700 or if we allow 750.
> > I don't recall offhand if that means we'd have to make changes to allow
> > that, but, for my 2c, I don't see why we wouldn't allow it to be an
> > option.
>
> OK, that would be an initdb change then.
It would need to be optional, so distributions and users could choose
which makes sense for their systems.
Thanks!
Stephen
From | Date | Subject | |
---|---|---|---|
Next Message | Constantin S. Pan | 2016-01-17 19:16:35 | Re: Proposal: speeding up GIN build with parallel workers |
Previous Message | Bruce Momjian | 2016-01-17 18:55:49 | Re: Additional role attributes && superuser review |