Re: Alternate db location

From: Geoffrey <esoteric(at)3times25(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Alternate db location
Date: 2004-09-11 12:43:01
Message-ID: 4142F2D5.9070600@3times25.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Kostis Mentzelos wrote:
> I believe that su user -c command throws away the environment

Changes some of the environment. For example $HOME will point to the
new user home. The command will be executed with the new user's shell
as defined in /etc/passwd. Retains most of the exported variables from
the previous user id.

> su - user -c command executes the user .profile

Set's the environment according to the new 'user' id's environment,
depending on the shell used, it's not necessarily going to be .profile.
Exported variables from the previous id are lost.

--
Until later, Geoffrey Registered Linux User #108567
AT&T Certified UNIX System Programmer - 1995

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Andrew Hammond 2004-09-11 18:14:35 Re: Binding Parameters
Previous Message Amin 2004-09-10 21:20:02 unsubscribe