Re: 777 permissions on basebackup directory - Mailing list pgsql-admin

From Magnus Hagander
Subject Re: 777 permissions on basebackup directory
Date
Msg-id CABUevEz3aD8BzLfdz_O43Q+Qj8Ric3izWC+=z3zDFZaOxDb_dA@mail.gmail.com
Whole thread Raw
In response to 777 permissions on basebackup directory  (prakhar jauhari <prak840@gmail.com>)
List pgsql-admin
On Tue, Jul 16, 2013 at 5:42 AM, prakhar jauhari <prak840@gmail.com> wrote:
> Hi all,
> I am currently using  postgresql 9.2 installation.
> While taking base backups using pg_basebackup utility, I noticed that
> permissions of the directory which i specify for base backup are set to 777.
> Does postgesql need such lenient permissions to work, coz 777 on Db
> directory seems a security concern to me.

PostgreSQL does not care about the permissions on the backup directory
used, and does not set them to 777. In fact, it sets them to to be
accessible only by the owner, so clearly something else is setting
those permissions for you.

It will copy any permissions *inside* the data directory for you, so
if you see 777 there, it means that you have those permissions
somewhere in your production data directory as well.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


pgsql-admin by date:

Previous
From: prakhar jauhari
Date:
Subject: 777 permissions on basebackup directory
Next
From: Bruce Momjian
Date:
Subject: Re: Upgrading from 9.1 to 9.2 - master AND slave