[ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Tomeh, Husam
I've seen book that prefer installing PostgreSQL as root and another one recommends otherwise by first creating a postgres account and then installing it as postgres. In the Oracle world, you don't use root to install the software. What is the best practice as far as PostgreSQL goes? -- Husam *

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Joshua D. Drake
Tomeh, Husam wrote: I've seen book that prefer installing PostgreSQL as root and another one recommends otherwise by first creating a postgres account and then installing it as postgres. In the Oracle world, you don't use root to install the software. What is the best practice as far as PostgreS

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Christopher Petrilli
On Wed, 12 Jan 2005 15:30:06 -0800, Tomeh, Husam <[EMAIL PROTECTED]> wrote: > I've seen book that prefer installing PostgreSQL as root and another one > recommends otherwise by first creating a postgres account and then > installing it as postgres. In the Oracle world, you don't use root to > insta

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Peter Eisentraut
Tomeh, Husam wrote: > I've seen book that prefer installing PostgreSQL as root and another > one recommends otherwise by first creating a postgres account and > then installing it as postgres. In the Oracle world, you don't use > root to install the software. What is the best practice as far as > P

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Christopher Petrilli
On Thu, 13 Jan 2005 01:00:31 +0100, Peter Eisentraut <[EMAIL PROTECTED]> wrote: > Tomeh, Husam wrote: > > I've seen book that prefer installing PostgreSQL as root and another > > one recommends otherwise by first creating a postgres account and > > then installing it as postgres. In the Oracle worl

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Joshua D. Drake
Peter Eisentraut wrote: Tomeh, Husam wrote: I've seen book that prefer installing PostgreSQL as root and another one recommends otherwise by first creating a postgres account and then installing it as postgres. In the Oracle world, you don't use root to install the software. What is the best practi

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Darcy Buskermolen
On January 12, 2005 04:31 pm, Joshua D. Drake wrote: > Peter Eisentraut wrote: > > Tomeh, Husam wrote: > >>I've seen book that prefer installing PostgreSQL as root and another > >>one recommends otherwise by first creating a postgres account and > >>then installing it as postgres. In the Oracle wor

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Joshua D. Drake
The current recommendation, which is reflected in the installation instructions, is to install the software as root and to use the postgres user for the database files. The advice seen elsewhere in this thread to use the postgres user also for the software files is wrong. As a security profe

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Joshua D. Drake
Darcy Buskermolen wrote: On January 12, 2005 04:31 pm, Joshua D. Drake wrote: Peter Eisentraut wrote: Tomeh, Husam wrote: I've seen book that prefer installing PostgreSQL as root and another one recommends otherwise by first creating a postgres account and then installing it as postg

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Tom Lane
Christopher Petrilli <[EMAIL PROTECTED]> writes: > On Thu, 13 Jan 2005 01:00:31 +0100, Peter Eisentraut <[EMAIL PROTECTED]> > wrote: >> The current recommendation, which is reflected in the installation >> instructions, is to install the software as root and to use the >> postgres user for the dat

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Goulet, Dick
r Oracle DBA Oracle Certified 8i DBA -Original Message- From: Peter Eisentraut [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 7:01 PM To: Tomeh, Husam Cc: PgSQL ADMIN Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate! Tomeh, Hu

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Goulet, Dick
:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 11:14 PM To: Goulet, Dick Cc: Peter Eisentraut; Tomeh, Husam; PgSQL ADMIN Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate! On Wed, 12 Jan 2005, Goulet, Dick wrote: > You may well be on the

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Bruce Momjian
to:[EMAIL PROTECTED] > Sent: Wednesday, January 12, 2005 7:01 PM > To: Tomeh, Husam > Cc: PgSQL ADMIN > Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" > Debate! > > Tomeh, Husam wrote: > > I've seen book that prefe

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread postgres
On Wed, 12 Jan 2005, Goulet, Dick wrote: > Whatever, I'll keep root only for absolutely restricted use & install > under a separate user account. Works just fine & it makes the auditors > & sysadmin feel better. Unfortunately, I _know_ how auditors think, but I would hope that a sensible compan

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Joshua D. Drake
gSQL ADMIN Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate! On Wed, 12 Jan 2005, Goulet, Dick wrote: You may well be on the development team, but you are wrong for one very important reason. If the Postgresql executables are owned by root they execu

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-12 Thread Doug Quale
Christopher Petrilli <[EMAIL PROTECTED]> writes: > As a security professional, why would the root user need to be > involved in the ownership of PostgreSQL? I see no reason for this, > but perhaps I'm missing something important. A number of years ago some Unices experimented with installing sys

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Peter Eisentraut
I wrote: > The current recommendation, which is reflected in the installation > instructions, is to install the software as root and to use the > postgres user for the database files. The advice seen elsewhere in > this thread to use the postgres user also for the software files is > wrong. Those

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Gémes Géza
oulet Senior Oracle DBA Oracle Certified 8i DBA -Original Message- From: Peter Eisentraut [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 7:01 PM To: Tomeh, Husam Cc: PgSQL ADMIN Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Dawid Kuroczko
On Wed, 12 Jan 2005 20:52:16 -0800, Joshua D. Drake <[EMAIL PROTECTED]> wrote: > >Whatever, I'll keep root only for absolutely restricted use & install > >under a separate user account. Works just fine & it makes the auditors > >& sysadmin feel better. > I don't argue the point of using root. I ag

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Dick Davies
* Dawid Kuroczko <[EMAIL PROTECTED]> [0117 12:17]: > On Wed, 12 Jan 2005 20:52:16 -0800, Joshua D. Drake > <[EMAIL PROTECTED]> wrote: > > >Whatever, I'll keep root only for absolutely restricted use & install > > >under a separate user account. Works just fine & it makes the auditors > > >& sysadm

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Dawid Kuroczko
On Thu, 13 Jan 2005 12:20:41 +, Dick Davies <[EMAIL PROTECTED]> wrote: > > But only if either setuid root or executed by root. Hey, on my > > system even /bin/sh is owned by root; it would be funny of it > > executed as root > C'mon folks, the guy obviously made a booboo - no need to rub his >

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Goulet, Dick
k Goulet Senior Oracle DBA Oracle Certified 8i DBA -Original Message- From: Dick Davies [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 7:21 AM To: PostgreSQL Admin Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate! * Dawid Kuroczko

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Joshua D. Drake
Those who dismiss this advice as my own imagination may want to check how other server packages are installed on their system. What user does sshd run under? Who owns /usr/sbin/sshd? What user does the MTA run under? Who owns the binaries? What user does Apache run under? Who owns the binarie

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Doug Quale
"Goulet, Dick" <[EMAIL PROTECTED]> writes: > to Postgres install as well. I as the DBA should be able to install, > upgrade, etc the software without access to the root account. Simply > put the fewer people who know the root password the fewer who can > destroy the system and the fewer who have

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Dick Davies
* Dawid Kuroczko <[EMAIL PROTECTED]> [0151 12:51]: > On Thu, 13 Jan 2005 12:20:41 +, Dick Davies > <[EMAIL PROTECTED]> wrote: > > > But only if either setuid root or executed by root. Hey, on my > > > system even /bin/sh is owned by root; it would be funny of it > > > executed as root > > C'mo

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Matt Clark
Put all your eggs in one basket, and WATCH THAT BASKET. Better yet, pay someone more reliable than oneself to watch it. Preferably a well-paid and happy fox. Or _maybe_ put your eggs in an invisible super-basket? Not trolling, just checking the analogy integrity field. M --

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Christopher Browne
Martha Stewart called it a Good Thing when [EMAIL PROTECTED] ("Goulet, Dick") wrote: > You may well be on the development team, but you are wrong for > one very important reason. If the Postgresql executables are owned by > root they execute with the priviledges of root. Methinks you may

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Christopher Browne
In an attempt to throw the authorities off his trail, [EMAIL PROTECTED] ("Tomeh, Husam") transmitted: > I've seen book that prefer installing PostgreSQL as root and another one > recommends otherwise by first creating a postgres account and then > installing it as postgres. In the Oracle world, yo

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Christopher Browne
Martha Stewart called it a Good Thing when [EMAIL PROTECTED] ("Goulet, Dick") wrote: > Well, thanks for the leeway, but getting one's nose rubbed in things for > good and bad comes with the turf. If there's one thing I've learned > about software over the years it's that there are many ways to sk

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Goulet, Dick
nse of the most valuable. Dick Goulet Senior Oracle DBA Oracle Certified 8i DBA -Original Message- From: Doug Quale [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 11:56 AM To: PostgreSQL Admin Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus &qu

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Joshua D. Drake
ied 8i DBA -Original Message- From: Doug Quale [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 11:56 AM To: PostgreSQL Admin Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate! "Goulet, Dick" <[EMAIL PROTECTED]> write

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Bruno Wolff III
On Thu, Jan 13, 2005 at 13:52:41 -0500, "Goulet, Dick" <[EMAIL PROTECTED]> wrote: > Doug, > > OK, Assume that the binaries are installed under root, but a > hacker cracks PostGres, what is to stop him/her from trashing all of the > database files in the first place? Their not owned by roo

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Peter Eisentraut
Goulet, Dick wrote: > And in my book the executables are > of zero value whereas the data files, and their contained data, are > of infinite value. So under your scheme we're protecting the least > valuable part of the system at the expense of the most valuable. No, there is no expense in that se

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Doug Quale
"Goulet, Dick" <[EMAIL PROTECTED]> writes: > OK, Assume that the binaries are installed under root, but a > hacker cracks PostGres, what is to stop him/her from trashing all of the > database files in the first place? Their not owned by root. Installing > malware, whether it's actual code

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Uwe C. Schroeder
bout the data anyways. > > > Dick Goulet > Senior Oracle DBA > Oracle Certified 8i DBA > -Original Message- > From: Doug Quale [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 13, 2005 11:56 AM > To: PostgreSQL Admin > Subject: Re: [ADMIN] Installing PostgreSQL

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Goulet, Dick
your saving grace or doom. Dick Goulet Senior Oracle DBA Oracle Certified 8i DBA -Original Message- From: Uwe C. Schroeder [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 4:14 PM To: PostgreSQL Admin Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus &qu

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Bruce Momjian
Uwe C. Schroeder wrote: [ PGP not available, raw data follows ] > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Thursday 13 January 2005 10:52 am, Goulet, Dick wrote: > > Doug, > > > > OK, Assume that the binaries are installed under root, but a > > hacker cracks PostGres, what is to

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-13 Thread Uwe C. Schroeder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 13 January 2005 01:44 pm, Bruce Momjian wrote: > Uwe C. Schroeder wrote: > [ PGP not available, raw data follows ] > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On Thursday 13 January 2005 10:52 am, Goulet, Dick wrote: > >

Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root" Debate!

2005-01-29 Thread "Miquel van Smoorenburg"
In article <[EMAIL PROTECTED]>, Goulet, Dick <[EMAIL PROTECTED]> wrote: > Well, someone I can wholeheartedly agree with. So it really does not >matter who owns the binaries. Once the right account gets hacked your >had. If they hack root your dead, if they hack postgres the database is >had alth