From: Phillip Smith <phillip.smith@weatherbeeta.com.au>
To: Albretch Mueller <lbrtchx@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: separating PG binaries into a ro mounted partition
Date: Sun, 30 Dec 2007 16:41:57 +1100
Message-ID: <1198993317.5591.19.camel@cassandra-desktop> (raw)
In-Reply-To: <9ef66fac0712291840k5174fd7bp3558c0944eecd64a@mail.gmail.com>
References: <9ef66fac0712291840k5174fd7bp3558c0944eecd64a@mail.gmail.com>
What are you trying to acheive by making the binaries read-only?
All the config files reside in the data directory so there shoudl be a
problem making /usr/local/postgres/bin (or whatever you choose to
install the binaries) to be a read-only mounted partition. The other
option (which is far easier) would be to set the binaries immutable. As
root, run this:
chattr +i /use/local/postgres/bin/*
That way only root can remove the immutable flag so they can be changed
- if it's a security issue behind your desire to do this then it doesn't
matter that root can do that versus your suggestion as root would be
able to just remount the partition rw:
mount -o remount,rw /usr/local/postgres
If you can advise why you want them to be read-only then we can make
better suggestions.
Cheers,
~p
THINK BEFORE YOU PRINT - Save paper if you don't really need to print this
*******************Confidentiality and Privilege Notice*******************
The material contained in this message is privileged and confidential to
the addressee. If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.
Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments
e-mail.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: phillip.smith@weatherbeeta.com.au, lbrtchx@gmail.com
Subject: Re: separating PG binaries into a ro mounted partition
In-Reply-To: <1198993317.5591.19.camel@cassandra-desktop>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox