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
Goulet, Dick írta: Peter, 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. Thereby any local created extensions like database_size also execute with the pri

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
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 skin the same cat, just some are less painful than others. Anyway, to the discussion: Commerc

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"

2005-01-13 Thread Tomeh, Husam
So does that mean there's no security issue using the root account to install postrgeSQL as the first book indicated? Thanks. -- Husam -Original Message- From: Joshua D. Drake [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 8:52 PM To: Goulet, Dick Cc: Stephan Szabo; Peter E

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

[ADMIN] syntax issue with insert statement

2005-01-13 Thread David Bear
I'm in process of migrating data. That means lots of data munging. I decided that while I'm coding I should go ahead and create sql syntax rather than just some delimited file. So I produced the following code: docflow=> INSERT INTO student (first_name, last_name, middle_name, added_by, aff

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"

2005-01-13 Thread Scott Marlowe
On Thu, 2005-01-13 at 06:41, Dawid Kuroczko wrote: > 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

[ADMIN] Setting Up Clustering for Postgres

2005-01-13 Thread John Allgood
Hello Folks I am looking for some advice. I am building a Dual Opteron Cluster using Redhat ES 3.0 x86_64 and Redhat Cluster Services this is a failover solution. I am using a Kingston Infostation for the shared data storage. I am nearly to the point of building the filesystems on the Data S

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"

2005-01-13 Thread Bruno Wolff III
On Thu, Jan 13, 2005 at 08:06:05 -0800, "Tomeh, Husam" <[EMAIL PROTECTED]> wrote: > So does that mean there's no security issue using the root account to > install postrgeSQL as the first book indicated? Thanks. This depends on who you trust. The install scripts could potentially do bad things.

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
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 root. Installing malware, whether it's actual code or destroying/defacing files causes similar

Re: [ADMIN] syntax issue with insert statement

2005-01-13 Thread Scott Marlowe
On Thu, 2005-01-13 at 11:17, David Bear wrote: > I'm in process of migrating data. That means lots of data munging. > > I decided that while I'm coding I should go ahead and create sql syntax rather > than just some delimited file. So I produced the following code: > > docflow=> INSERT INTO stud

Re: [ADMIN] syntax issue with insert statement

2005-01-13 Thread Michael Fuhr
On Thu, Jan 13, 2005 at 10:17:47AM -0700, David Bear wrote: > I'm in process of migrating data. That means lots of data munging. > > I decided that while I'm coding I should go ahead and create sql syntax rather > than just some delimited file. If you have a lot of data to load, then using COPY

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

2005-01-13 Thread Joshua D. Drake
Goulet, Dick 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 root. Installing malware, whether it's actual code or destroying/defacing files ca

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
-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 stop him/her from trashing all of the > database files in the first place? Th

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

2005-01-13 Thread Scott Marlowe
On Thu, 2005-01-13 at 15:13, Uwe C. Schroeder wrote: > -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 stop him/he

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

2005-01-13 Thread Goulet, Dick
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 although the server may survive. In either case the state of your backups is yo

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"

2005-01-13 Thread Tomeh, Husam
Wouldn't installing postgreSQL as postgres give me the convenience to upgrade PostgreSQL and the database without having the SA get involved. Is it a question of roles now? Should a DBA perform all postgreSQL-related tasks or should that the accountability be confused by having SA responsible for

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

2005-01-13 Thread Geoffrey
Tomeh, Husam wrote: Wouldn't installing postgreSQL as postgres give me the convenience to upgrade PostgreSQL and the database without having the SA get involved. Is it a question of roles now? Should a DBA perform all postgreSQL-related tasks or should that the accountability be confused by havin

[ADMIN] pam

2005-01-13 Thread Kavan, Dan (IMS)
Hi, I configured Postgres with PAM. I was wondering how to implement this. Does this mean I will still need to create individual users on the database or can I assign users rights from a LDAP server? D.J. Kavan ---(end of broadcast)--

[ADMIN] ERROR: btree: index item size 2892 exceeds maximum 2713

2005-01-13 Thread Ramachandra Putti
Hi all, Why did I get this error? Could you please help me? Regards, Ramachandra ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

[ADMIN] Pg8 for Windows

2005-01-13 Thread Theo Galanakis
Title: Pg8 for Windows I have tried various version of PG for Windows and it does not appear to install. Here is the log produced by the installed, falls over when calling GetAvailableLocales()?? Action start 15:55:22: GetAvailableLocales. MSI (c) (C4:6C): Creating MSIHANDLE (1) of type 79054