[pgsql-jp: 27101] ユーザーの作成・削除について・・・

ACT 冨永 圭祐 k-tominaga @ act-design.co.jp
2002年 8月 22日 (木) 11:54:50 JST


はじめまして。
最近、このメーリングリストに参加することになりました。
よろしくお願い致します。

さて、早速なのですが質問があります。

「postgresql-7.2にて」

postmasterが起動していない状態で
createuserコマンドでユーザーを作成したら

> createuser web
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: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
createuser: creation of user "web" failed

と言われて、ユーザー作成が失敗しましたので


postmasterを起動して、
> /usr/local/pgsql/bin/pg_ctl -D /data/postgres -l logfile start
postmaster successfully started

再度、ユーザーを作ろうとしました。
> createuser web
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
ERROR:  CREATE USER: user name "web" already exists
createuser: creation of user "web" failed

既にユーザーがいると言われましたので、

dropuserコマンドでユーザーを削除しようと思い
> dropuser web
ERROR:  current user cannot be dropped
dropuser: deletion of user "web" failed

コマンドを叩いたのですが
現在のユーザーは消すことが出来ないといわれてしまいました。

中途半端な状態でユーザーが作られているような感じですので
完全に消してから、再度ユーザーを作りたいのですが
なにか方法はありますでしょうか?

よろしくお願い致します。


 冨永 圭祐  <k-tominaga @ act-design.co.jp>




pgsql-jp メーリングリストの案内