Re: separating PG binaries into a ro mounted partition

Поиск
Список
Период
Сортировка
От Phillip Smith
Тема Re: separating PG binaries into a ro mounted partition
Дата
Msg-id 1198993317.5591.19.camel@cassandra-desktop
обсуждение исходный текст
Ответ на separating PG binaries into a ro mounted partition  ("Albretch Mueller" <lbrtchx@gmail.com>)
Ответы Re: separating PG binaries into a ro mounted partition  ("Albretch Mueller" <lbrtchx@gmail.com>)
Список pgsql-admin
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 e-mail.

*******************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

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Albretch Mueller"
Дата:
Сообщение: separating PG binaries into a ro mounted partition
Следующее
От: "Albretch Mueller"
Дата:
Сообщение: Re: separating PG binaries into a ro mounted partition