Re: pq_shadow

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: webmaster <webmaster(at)crescentart(dot)com>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: pq_shadow
Date: 2001-03-30 15:02:22
Message-ID: Pine.LNX.4.30.0103301659120.1063-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

webmaster writes:

> [root(at)crescent1 root]# createuser webmaster -P
> Enter password for user "webmaster":
> Enter it again:
> Shall the new user be allowed to create databases? (y/n) y
> Shall the new user be allowed to create more new users? (y/n) y
> psql: FATAL 1: SetUserId: user 'root' is not in 'pg_shadow'
> createuser: creation of user "webmaster" failed
> [root(at)crescent1 root]#

createuser needs to connect to the database in order to create new users.
In order to connect to the database, it needs to connect with an *already
existing* database user name. "root" is apparently no such user name.
If this is a newly initdb'ed site, then the only user name that exists is
"postgres" (or whatever the name of your Unix PostgreSQL account). Either
you login in (su) as postgres, or you use createuser -U postgres.

Incidentally, this is not a bug and should be posted elsewhere.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

  • pq_shadow at 2001-03-28 06:37:31 from webmaster

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2001-03-30 15:04:58 Re: unix_socket_directory isn't used by all bin tools
Previous Message Jerome Alet 2001-03-30 14:59:08 Re: unix_socket_directory isn't used by all bin tools