Re: security - user account setup on SUSE - Mailing list pgsql-admin

From Ivo Rossacher
Subject Re: security - user account setup on SUSE
Date
Msg-id 200505121259.59927.rossacher@bluewin.ch
Whole thread Raw
In response to security - user account setup on SUSE  ("Brandon Fouts" <BFouts@psrc.org>)
List pgsql-admin
Am Mittwoch, 11. Mai 2005 20:42 schrieb Brandon Fouts:
> I think for security reasons I should not run PostgreSQL from the root

yes.

> account. Also, as PostgreSQL will probably be only one of the applications
> running on this box. (would running in UML give me any extra security? - I
> suspect not the right tool??)

Don't think this helps by it self.

>
> IF I'm wrong to worry about root account, now is the time to inform me.
> Otherwise read on.
>
> (I have setup once and I think I had it running from the root account.)
>
> background SUSE 9 and YAST install of PostgreSQL creates the following
> directories:
>
> /usr/lib/postgresql/
> /usr/share/postgresql/
> /usr/share/pgsql/
> /var/lib/pgsql/backup
> /var/lib/pgsql/data
>
> and currently status shows unused
> # rcpostgresql status     unused        (rc - is this some kind of
> scripting??)
>
> Can anyone offer some guidance?

In the Yast tool you can start the servers you need in the Runlevel-Editor.
There you can select in which runnlevels you want it to run as well.
When you start it there, at startup a scritp will be executed with root
permission. This script will start then the Server with postgres as user. So
the database does not run under root permission (which would be definitly
bad).

Best regards
Ivo

>--------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: thats funny :)
Next
From: Bruno Wolff III
Date:
Subject: Re: brute force attacking the password