What is a password for?

Поиск
Список
Период
Сортировка
От Weiwei Guo
Тема What is a password for?
Дата
Msg-id 47DCB0BC.5060009@gmail.com
обсуждение исходный текст
Ответы Re: What is a password for?  (Micah Yoder <micah@yoderdev.com>)
Re: What is a password for?  ("Andrej Ricnik-Bay" <andrej.groups@gmail.com>)
Список pgsql-novice
Dear all,

I am trying to create user/db under console with. I find that no matter I input a password or not when I'm creating or
dropping a user/db, the action can be success. What is a password for?

The following is what I have done:

~ $ createuser -U postgres -W super_creater_ctreated
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) y
Password:<I input 'aaa' here>
CREATE ROLE

~ $ createuser -U super_creater_ctreated -W test_creater_created
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n
Password: <i input 'bbb' here>
CREATE ROLE

~ $ dropuser -U super_creater_ctreated -W test_creater_created
Password:<i input nothing here>
DROP ROLE

~ $ createuser -U super_creater_ctreated -W test_creater_createdno
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n
Password:<i input nothing here>
CREATE ROLE

~ $ dropuser -U super_creater_ctreated -W test_creater_createdno
Password:<i input 'bbb' here>
DROP ROLE



I cannot understand the mechanism for password. Is it a bug?

I'm using postgresql-8.2.6.


Weiwei

В списке pgsql-novice по дате отправления:

Предыдущее
От: Frank Bax
Дата:
Сообщение: Re: Initialization on server start-up
Следующее
От: Micah Yoder
Дата:
Сообщение: Re: What is a password for?