X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4DE15329E3A for ; Sat, 11 Sep 2004 13:43:15 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12585-03 for ; Sat, 11 Sep 2004 12:43:03 +0000 (GMT) Received: from rhws.home.edu (66-23-211-34.clients.speedfactory.net [66.23.211.34]) by svr1.postgresql.org (Postfix) with ESMTP id 30912329CF7 for ; Sat, 11 Sep 2004 13:43:05 +0100 (BST) Received: from [127.0.0.1] (rhws.home.edu [127.0.0.1]) by rhws.home.edu (8.12.11/8.12.11) with ESMTP id i8BCh2bm005788 for ; Sat, 11 Sep 2004 08:43:04 -0400 Message-ID: <4142F2D5.9070600@3times25.net> Date: Sat, 11 Sep 2004 08:43:01 -0400 From: Geoffrey User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Alternate db location References: <13140.1094599310@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/104 X-Sequence-Number: 14807 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