X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0615AD1C4C4 for ; Fri, 7 May 2004 07:09:34 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 04340-03 for ; Fri, 7 May 2004 07:09:16 -0300 (ADT) Received: from ara.zf.jcu.cz (ara.zf.jcu.cz [160.217.161.4]) by svr1.postgresql.org (Postfix) with ESMTP id 856FED1D2C6 for ; Fri, 7 May 2004 07:09:13 -0300 (ADT) Received: from ara.zf.jcu.cz (localhost [127.0.0.1]) by nod32.zf.jcu.cz (Postfix) with ESMTP id E4DCA9845; Fri, 7 May 2004 12:09:15 +0200 (CEST) X-Virus-Scanner: This message was checked by NOD32 Antivirus system NOD32 for Linux Mail Server. For more information on NOD32 Antivirus System, please, visit our website: http://www.nod32.com/ Received: by ara.zf.jcu.cz (Postfix, from userid 5770) id CE1D39866; Fri, 7 May 2004 12:09:15 +0200 (CEST) Date: Fri, 7 May 2004 12:09:15 +0200 From: Karel Zak To: Neil.Thompson@shepway.gov.uk Cc: pgsql-admin@postgresql.org Subject: Re: problem trying to su - postgres Message-ID: <20040507100915.GC621@zf.jcu.cz> References: <9D9DF263C303D411B419009027F65CC20206FFA8@SDC-MAIL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9D9DF263C303D411B419009027F65CC20206FFA8@SDC-MAIL> User-Agent: Mutt/1.3.28i X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/67 X-Sequence-Number: 13383 On Fri, May 07, 2004 at 09:54:42AM +0100, Neil.Thompson@shepway.gov.uk wrote: > I'm a newbie to all things linux and have the following problem > > running red hat linux 9 i log into my pc, change to su - and type the > password, all is ok and i get root@localhost > > I'm trying now to configure postgresql, which i installed with linux and it > says to su - postgres, i do this but instead of getting postgres@localhost > i get -bash-2.05b$ , is this right? or do i > need to reinstall something / update something? The important is user identity, you can check it by 'id' command: # id uid=0(root) gid=0(root) groups=0(root) # su - postgres $ id uid=31(postgres) gid=32(postgres) groups=32(postgres) Your '-bash-2.05b$' is only prompt and depend on PS1 environment value setting. You can found more information in 'man bash' in the /etc/profile file or other places... Karel -- Karel Zak http://home.zf.jcu.cz/~zakkr/