From: Joshua D. Drake <jd@commandprompt.com>
To: Goulet, Dick <DGoulet@vicr.com>
Cc: Doug Quale <quale1@charter.net>
Cc: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: Installing PostgreSQL as "postgress" versus "root" Debate!
Date: Thu, 13 Jan 2005 12:28:38 -0800
Message-ID: <41E6D9F6.6000306@commandprompt.com> (raw)
In-Reply-To: <4001DEAF7DF9BD498B58B45051FBEA650207AB73@25exch1.vicorpower.vicr.com>
References: <4001DEAF7DF9BD498B58B45051FBEA650207AB73@25exch1.vicorpower.vicr.com>
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 causes
> similar if not identical problems. At least their restricted to the
> postgres user. 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.
The root user can not own postgres data files. The main super user which
can be any user except root (uid 0) is who owns the data files which is
determined at the runtime of initdb.
Sincerely,
Joshua D. Drake
>
>
> Dick Goulet
> Senior Oracle DBA
> Oracle Certified 8i DBA
> -----Original Message-----
> From: Doug Quale [mailto:quale1@charter.net]
> Sent: Thursday, January 13, 2005 11:56 AM
> To: PostgreSQL Admin
> Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root"
> Debate!
>
> "Goulet, Dick" <DGoulet@vicr.com> 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 to be told when the password
>>changes. And the fewer people who know anything, the more secure it
>
> is.
>
> This analysis is incomplete. Under this scheme, if someone cracks
> your account they can install trojaned or malicious executables owned
> by you without cracking root. The flaw is in believing that this
> scheme requires an intruder to crack two accounts to defeat your
> security. In fact, you have doubled the number of targets but left
> the amount of work required of the bad guys to compromise your system
> the same (crack one account).
>
> Put all your eggs in one basket, and WATCH THAT BASKET.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
--
Command Prompt, Inc., your source for PostgreSQL replication,
professional support, programming, managed services, shared
and dedicated hosting. Home of the Open Source Projects plPHP,
plPerlNG, pgManage, and pgPHPtoolkit.
Contact us now at: +1-503-667-4564 - http://www.commandprompt.comAttachments:jd.vcf (text/x-vcard, 638B) download
begin:vcard
fn:Joshua D. Drake
n:Drake;Joshua D.
org:Command Prompt, Inc.
adr:;;PO Box 215;Cascade Locks;Oregon;97014;USA
email;internet:jd@commandprompt.com
title:Consultant
tel;work:503-667-4564
tel;fax:503-210-0334
note:Command Prompt, Inc. is the largest and oldest US based commercial PostgreSQL support provider. We provide the only commercially viable integrated PostgreSQL replication solution, but also custom programming, and support. We authored the book Practical PostgreSQL, the procedural language plPHP, and adding trigger capability to plPerl.
x-mozilla-html:FALSE
url:http://www.commandprompt.com/
version:2.1
end:vcard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jd@commandprompt.com, DGoulet@vicr.com, quale1@charter.net
Subject: Re: Installing PostgreSQL as "postgress" versus "root" Debate!
In-Reply-To: <41E6D9F6.6000306@commandprompt.com>
References: <4001DEAF7DF9BD498B58B45051FBEA650207AB73@25exch1.vicorpower.vicr.com> <41E6D9F6.6000306@commandprompt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox