Re: building from source requires postgres user account

Поиск
Список
Период
Сортировка
От George Wilk
Тема Re: building from source requires postgres user account
Дата
Msg-id 002101c7c4a8$392ed9b0$1f7ca8c0@ellacoya.com
обсуждение исходный текст
Ответ на Re: building from source requires postgres user account  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Tom,
I fixed my build problem.
Our build scenario is slightly atypical.  We are building and installing
postgres into a fake root directory and then creating a Solaris package for
bundling with our configuration manager component.

I am all set. Thanks!

Cheers,
~george

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Thursday, July 12, 2007 12:59 PM
To: George Wilk
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] building from source requires postgres user account

"George Wilk" <gwilk@ellacoya.com> writes:
> I'd like to use my own user account when building postgres from source.
> When I follow directions on Sun's page:
> http://docs.sun.com/app/docs/doc/819-5578/6n7lcpcl5?a=view I don't have a
> problem, but running build under my own account runs into file permission
> issues after the build is done.

Well, the default place to put the executables (/usr/local) is normally
not world-writable, so you should expect to have to do "make install" as
root.  If you want an entirely unprivileged installation, specify an
unprivileged install location to configure --prefix.  However, such
setups are normally not useful for much beyond testing purposes; if you
intend the database to be autostarted at system boot then the
executables really ought to be root-owned for security.

You certainly don't need to do configure and make as any particular
user.  The user you do "make install" as will determine the ownership
of the installed executables and other static files.  The user you do
"initdb" as will own the PGDATA directory and will need to be the userid
that the postmaster is started under.  These three can be different,
and none of them need to be named "postgres".

            regards, tom lane



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: building from source requires postgres user account
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: building from source requires postgres user account