From: Karel Zak <zakkr@zf.jcu.cz>
To: Neil.Thompson@shepway.gov.uk
Cc: pgsql-admin@postgresql.org
Subject: Re: problem trying to su - postgres
Date: Fri, 7 May 2004 12:09:15 +0200
Message-ID: <20040507100915.GC621@zf.jcu.cz> (raw)
In-Reply-To: <9D9DF263C303D411B419009027F65CC20206FFA8@SDC-MAIL>
References: <9D9DF263C303D411B419009027F65CC20206FFA8@SDC-MAIL>
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 <mailto: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
> <mailto: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 <zakkr@zf.jcu.cz>
http://home.zf.jcu.cz/~zakkr/
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: zakkr@zf.jcu.cz, Neil.Thompson@shepway.gov.uk
Subject: Re: problem trying to su - postgres
In-Reply-To: <20040507100915.GC621@zf.jcu.cz>
References: <9D9DF263C303D411B419009027F65CC20206FFA8@SDC-MAIL> <20040507100915.GC621@zf.jcu.cz>
* 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