.\" This is -*-nroff-*- .\" XXX standard disclaimer belongs here.... .\" $Header: /usr/local/cvsroot/pgsql/src/man/pg_passwd.1,v 1.3 1998/01/26 01:42:49 scrappy Exp $ .\" Translated by Mitsuhiro Maeda (mitsu@cni.co.jp) .TH PG_PASSWD UNIX 11/05/95 日本語PostgreSQL 日本語PostgreSQL .SH 名称 .\" pg_passwd - manipulate the flat password file pg_passwd - フラットパスワードファイルを操作します .SH 形式 .BR "pg_passwd password_file" .SH 説明 .\" .IR Pg_passwd .\" is a tool to manipulate the .\" flat password file functionality of PostgreSQL. .IR pg_passwd は PostgreSQL のフラットパスワードファイルを操作するツールです。 .\" Specify the password file in the same style of Ident authentication in .\" .IR $PGDATA/pg_hba.conf : .IR $PGDATA/pg_hba.conf の Ident 認証と同様のスタイルのパスワードファイルを指定します。 .nf host unv 133.65.96.250 255.255.255.255 password passwd .fi .\" The above line allows access from 133.65.96.250 using the passwords listed .\" in .\" .IR $PGDATA/passwd . 上の行は 133.65.96.250 からのアクセスを .IR $PGDATA/passwd に挙げられたパスワードを使って許可します。 .\" The format of the password file follows those of .\" .IR /etc/passwd .\" and .\" .IR /etc/shadow . パスワードファイルのフォーマットは .IR /etc/passwd と .IR /etc/shadow に追従しています。 .\" The first field is the user name, and the second field .\" is the encrypted password. 最初のフィールドはユーザ名で、 2番目が暗号化されたパスワードです。 .\" The rest is completely ignored. 他は完全に無視されます。 .\" Thus the following three sample lines specify the same user and password pair: でうすから、次の 3つのサンプル行は同じユーザとパスワードの組みとなります: .nf pg_guest:/nB7.w5Auq.BY:10031:::::: pg_guest:/nB7.w5Auq.BY:93001:930::/home/guest:/bin/tcsh pg_guest:/nB7.w5Auq.BY:93001 .fi .\" Supply the password file to the pg_passwd command. pg_passwd コマンドにはパスワードファイルを指定してください。 .\" In the case described above, after .\" .IR cd "'ing" .\" to $PGDATA, the following command execution specify .\" the new password for pg_guest: 上に説明したケースでは、$PGDATA に .IR cd した後、pg_guest の新しいパスワードを次のコマンドの実行で決めます: .nf % pg_passwd passwd Username: pg_guest Password: Re-enter password: .fi .\" where the .\" .IR Password: .\" and .\" .IR "Re-enter password:" .\" prompts require the same password input which are not displayed .\" on the terminal. .IR Password: と .IR "Re-enter password:" のプロンプトはターミナルには出力されない同じパスワードの入力を求めます。 .\" The original password file is renamed to .\" .BR "passwd.bk" . 元のパスワードファイルは .BR "passwd.bk" に名前を変えます。 .PP .\" .BR "Psql authentication" .\" uses the .\" .BR -u .\" option. .BR "psql の認証" には .BR -u オプションを使います。 .\" The following lines show the sample usage of the option: 次はオプションの使い方のサンプルです: .nf % psql -h hyalos -u unv Username: pg_guest Password: Welcome to the POSTGRESQL interactive sql monitor: Please read the file COPYRIGHT for copyright terms of POSTGRESQL type \\? for help on slash commands type \\q to quit type \\g or terminate with semicolon to execute query You are currently connected to the database: unv unv=> .fi .\" .BI "Perl5 authentication" .\" uses the new style of the Pg.pm like this: .BI "Perl5 の認証" には Pg.pm の新しいスタイルを使います。 このようになります: .nf $conn = Pg::connectdb("host=hyalos dbname=unv user=pg_guest password=xxxxxxx"); .fi .\" For more details, refer to .\" .IR src/pgsql_perl5/Pg.pm . 詳細は .IR src/pgsql_perl5/Pg.pm を参照してください。 .PP .\" .BR "Pg{tcl,tk}sh authentication" .\" uses the .\" .IR pg_connect .\" command with the .\" .IR -conninfo .\" option thus: .BR "Pg{tcl,tk}sh の認証" には .IR pg_connect コマンドに .IR -conninfo オプションをつけて使います: .nf % set conn [pg_connect -conninfo \\ "host=hyalos dbname=unv \\ user=pg_guest password=xxxxxxx "] .fi .\" Use can list all of the keys for the option by executing the following .\" command: 次のコマンドを実行することで、 すべてのオプションのキーをリストアップすることができます: .nf % puts [ pg_conndefaults] .fi .SH ファイル .TP 5n $PGDATA/pg_hba.conf .\" The Host Based Authentication file ホストベース認証ファイル .SH 参照 psql(1).