Re: pq_shadow - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: pq_shadow
Date
Msg-id Pine.LNX.4.30.0103301659120.1063-100000@peter.localdomain
Whole thread Raw
In response to pq_shadow  ("webmaster" <webmaster@crescentart.com>)
List pgsql-bugs
webmaster writes:

> [root@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@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@gmx.net       http://yi.org/peter-e/

pgsql-bugs by date:

Previous
From: Robert Gaszewski
Date:
Subject: LATIN2 and wrong upper() and lower() functions output
Next
From: Peter Eisentraut
Date:
Subject: Re: unix_socket_directory isn't used by all bin tools