Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] postmaster crash and .s.pgsql file

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: Marc Howard Zuckman <marc(at)fallon(dot)classyad(dot)com>, scrappy(at)hub(dot)org, brook(at)trillium(dot)nmsu(dot)edu, hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] postmaster crash and .s.pgsql file
Date: 1998-01-30 02:05:39
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
> > > > No, "normal" users shouldn't be allowed to do so, obviously.  But, are
> > > > there real systems in which a database maintainer (i.e., user
> > > > postgres) cannot cooperate with the system admin (i.e., user root) to
> > > > accomplish this?  In practice, is it really envisioned that postgres
> > > > should be _so_ distinct from the system?  For example, don't most
> > > > people run the postmaster from the system startup scripts, and isn't
> > > > that the same thing?  How did those commands get inserted into the
> > > > startup scripts if not by root?
> > >
> > >     I do not feel that it is appropriate for a non-root program (which
> > > PostgreSQL is) to require a systems administrator to make permissions
> > > related changed to a directory for it to run, period.

> > >
> > Speaking of feelings, I'm not especially happy about allowing any old
> > user to trash a key file because it's located in a globally writable
> > directory.

Correct me if I'm wrong (oh, why bother saying that? :), but aren't there two
issues going on here? And, shouldn't all points raised above (and earlier) be
considered in the solution?

One issue is that a location for sockets needs to be specified for _any_
Postgres installation. This location is not exactly the same kind of thing as
the main Postgres installation tree.

The other issue is that there _may_ be a preferred location for this location
on some, most, or all Unix systems.

In either case, the location should be specified in, so that I
can override it in Makefile.custom, just like I do for defining POSTGRESDIR to
allow me to work in /opt/postgres/... rather than the other possible preferred

Perhaps the default location for an installation from source code should be
available without sysadmin intervention, which might suggest that it should be
in the postgres owner's home directory tree or in /tmp. Packaged binary
installations are likely to be installed by root into a dedicated Postgres

For my installation, I'll install from source and go ahead and override the
default to put it in /var/run or somewhere like that which is more secure; the
installation instructions will tell me which is the best location to achieve
maximum security.


                                                     - Tom

In response to


pgsql-hackers by date

Next:From: Marc Howard ZuckmanDate: 1998-01-30 03:37:27
Subject: Re: [HACKERS] postmaster crash and .s.pgsql file
Previous:From: Bruce MomjianDate: 1998-01-29 21:26:41
Subject: Re: [HACKERS] postmaster crash and .s.pgsql file

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group