From: Geoffrey <esoteric@3times25.net>
To: pgsql-admin@postgresql.org
Subject: Re: Alternate db location
Date: Sat, 11 Sep 2004 08:43:01 -0400
Message-ID: <4142F2D5.9070600@3times25.net> (raw)
In-Reply-To: <chmcpi$1ka9$1@news.hub.org>
References: <D5DB5D0D27171247AFEC9648EE98752F03220125@KCEX2KV1.mri-kc.int>
<13140.1094599310@sss.pgh.pa.us>
<chmcpi$1ka9$1@news.hub.org>
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
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: esoteric@3times25.net
Subject: Re: Alternate db location
In-Reply-To: <4142F2D5.9070600@3times25.net>
References: <D5DB5D0D27171247AFEC9648EE98752F03220125@KCEX2KV1.mri-kc.int> <13140.1094599310@sss.pgh.pa.us> <chmcpi$1ka9$1@news.hub.org> <4142F2D5.9070600@3times25.net>
* 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