Re: pq_shadow

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pq_shadow
Дата
Msg-id Pine.LNX.4.30.0103301659120.1063-100000@peter.localdomain
обсуждение исходный текст
Ответ на pq_shadow  ("webmaster" <webmaster@crescentart.com>)
Список 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 по дате отправления:

Предыдущее
От: Robert Gaszewski
Дата:
Сообщение: LATIN2 and wrong upper() and lower() functions output
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: unix_socket_directory isn't used by all bin tools