.\" This is -*-nroff-*- .\" XXX standard disclaimer belongs here.... .\" $Header: /usr/local/cvsroot/pgsql/src/man/create_user.l,v 1.2 1998/03/06 18:03:21 momjian Exp $ .\" Translated by Mitsuhiro Maeda (mitsu@cni.co.jp) .TH "CREATE USER" SQL 01/26/98 日本語PostgreSQL 日本語PostgreSQL .SH 名称 .\" create user -- create a new user within a PostgreSQL instance create user -- PostgreSQL のインスタンスに新しいユーザを作ります。 .SH 形式 .nf \fBcreate user [\fBwith password\fR password] [\fBcreatedb\fR | \fBnocreatedb\fR] [\fBcreateuser\fR | \fBnocreateuser\fR] [\fBin group\fR group-1, ..., group-n] [\fBvalid until '\fRabstime\fB'\fR] .fi .SH 説明 .\" .BR "create user" .\" will add a new user to an instance of PostgreSQL. .BR "create user" は PostgreSQL のインスタンスに新しいユーザを加えます。 .\" The new user will be .\" given a usesysid of 'SELECT max(usesysid) + 1 FROM pg_shadow'. 新しいユーザは usesysid を 'SELECT max(usesysid) + 1 FROM pg_shadow' から 与えられます。 .\" This means .\" that a PostgreSQL user's usesysid will not correspond to their operating .\" system(OS) user id. これは PostgreSQL のユーザの usesysid はユーザのオペレーティングシステム(OS) の ユーザID に関連していないということです。 .\" The exception to this rule is the 'postgres' user, .\" whose OS user id is used as the usesysid during the initdb process. このルールの例外は 'postgres' ユーザで、 この userid は initdb プロセスの中で usesysid として使われます。 .\" If .\" you still want the OS user id and the usesysid to match for any given .\" user, then use the createuser(1) script provided with the PostgreSQL .\" distribution. もし、すべてのユーザに対して OS のユーザID と usesysid とをマッチさせたいのなら、 PostgreSQL の配布パッケージが提供する createuser(1) スクリプトを使ってください。 .\" The 'with password' clause sets the user's password within the pg_shadow .\" relation. 'with password' 句はユーザのパスワードを pg_shadow リレーションにセットします。 .\" For this reason, pg_shadow is no longer accessible to the .\" 'public' group. この理由で、pg_shadow は 'public' グループにはアクセス可能になりません。 .\" Please note that when initdb(1) is executed for an .\" instance of PostgreSQL that the postgres user's password is initially set .\" to NULL. PostgreSQL のインスタンスに initdb(1) が実行されると、 postgres ユーザのパスワードは最初 NULL にセットされることに注意してください。 .\" When a user's password in the pg_shadow relation is NULL, then .\" user authentication proceeds as it historically has (HBA, PG_PASSWORD, .\" etc). pg_shadow リレーションのユーザのパスワードが NULL の時、 ユーザ認証は歴史的な方法で続行します。(HBA、PG_PASSWORD など) .\" However, if a password is set for a user, then a new authentication .\" system supplants any other configured for the PostgreSQL instance, and the .\" password stored in the pg_shadow relation is used for authentication. しかし、もしユーザにパスワードがセットされていると、 新しい認証システムは PostgreSQL のインスタンスに設定された他のものをさしおき、 pg_shadow リレーションに保存されたパスワードを認証に使います。 .\" For .\" more details on how this authentication system functions see pg_crypt(3). この認証システムがどのように機能するかの詳細についは pg_crypt(3) を参照してください。 .\" If the 'with password' clause is omitted, then the user's password is set .\" to the empty string with equates to a NULL value in the authentication .\" system mentioned above. 'with password' 句がなければ、 ユーザのパスワードは空の文字列になり、 これは上記の認証システムのメソッドで NULL 値と同じことになります。 .\" The createdb/nocreatedb clause defines a user's ability to create .\" databases. createdb/nocreatedb 句はユーザのデータベース作成能力を定義します。 .\" If createdb is specified, then the user being defined will be .\" allowed to create his/her own databases. もし createdb が指定されれば、 その定義されるユーザは彼または彼女の所有するデータベースを作ることが できるようになります。 .\" Using nocreatedb will deny a .\" user the ability to create databases. nocreatedb はユーザがデータベースを作ることを拒否します。 .\" If this clause is omitted, then .\" nocreatedb is used by default. この句がなければ、nocreatedb がデフォルトで使われます。 .\" The createuser/nocreateuser clause allows/prevents a user from creating .\" new users in an instance of PostgreSQL. createuser/nocreateuser 句は PostgreSQL のインスタンスに 新しいユーザを作ることを許可/拒否します。 .\" Omitting this clause will set the .\" user's value of this attribute to be nocreateuser. この句がなければ、この属性のユーザの値は nocreateuser になります。 .\" At the current time the 'in group' clause is non-functional. 現在、'in group' 句は機能しません。 .\" The intent .\" is to use this clause to affect the groups a user is a member of (as .\" defined in the pg_group relation). この句を作る目的は、ユーザのグループをいじることにあります。 (pg_group リレーションに定義されています) .\" Finally, the 'valid until' clause sets an absolute time after which the .\" user's PostgreSQL login is no longer valid. 最後に、'valid until' 句は、 そのユーザの PostgreSQL へのログインが無効となる絶対時間をセットします。 .\" Please note that if a user .\" does not have a password defined in the pg_shadow relation, then the valid .\" until date will not be checked during user authentication. もしユーザが pg_shadow リレーションにパスワードを定義していなければ、 その有効期限はユーザ認証中にチェックされません。 .\" If this clause .\" is omitted, then a NULL value is stored in pg_shadow for this attribute, and .\" the login will be valid for all time. この句がなければ、 NULL 値が pg_shadow のこの属性に保存されて、 ログインはずっと有効となります。 .SH 例 .nf --- .\" --- Create a user with no password --- パスワードなしでユーザを作ります --- create user tab; .fi .nf --- .\" --- Create a user with a password --- パスワード付きでユーザを作ります --- create user tab with password jw8s0F4; .fi .nf --- .\" --- Create a user with a password, whose account is valid thru 2001 .\" --- Note that after one second has ticked in 2002, the account is not .\" --- valid --- パスワード付きでユーザをつくり、アカウントは 2001 まで有効とします。 --- 1秒でも 2002 年と刻むと、そのアカウントは無効となります。 --- create user tab with password jw8s0F4 valid until 'Jan 1 2002'; .fi .nf --- .\" --- Create an account where the user can create databases. --- ユーザがデータベースを作れるようにアカウントを作ります --- create user tab with password jw8s0F4 createdb; .fi .SH 参照 pg_crypt(3), alter_user(l), drop_user(l).