From: | Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> |
---|---|
To: | Neil(dot)Thompson(at)shepway(dot)gov(dot)uk |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: problem trying to su - postgres |
Date: | 2004-05-07 10:09:15 |
Message-ID: | 20040507100915.GC621@zf.jcu.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Fri, May 07, 2004 at 09:54:42AM +0100, Neil(dot)Thompson(at)shepway(dot)gov(dot)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(at)localhost <mailto:root(at)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(at)localhost
> <mailto:postgres(at)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(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/
From | Date | Subject | |
---|---|---|---|
Next Message | Radu-Adrian Popescu | 2004-05-07 12:30:20 | Re: problem trying to su - postgres |
Previous Message | Radu-Adrian Popescu | 2004-05-07 09:29:51 | Re: problem trying to su - postgres |