From 37e55354334fc1ee86a3a3478d8e4a337c340959 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 28 Nov 2001 00:13:30 +0000 Subject: [PATCH] Add mention of init -W flag for security. --- doc/src/sgml/runtime.sgml | 49 ++++++++++++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index c694cfc755..8e37930a6e 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -51,28 +51,28 @@ $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.97 2001/11/21 06:09:45 tho Before you can do anything, you must initialize a database storage - area on disk. We call this a database - cluster. (SQL speaks of a catalog - cluster instead.) A database cluster is a collection of databases - that will be accessible through a single instance of a running - database server. After initialization, a database cluster will - contain one database named template1. As the - name suggests, this will be used as a template for any subsequently - created database; it should not be used for actual work. + area on disk. We call this a database cluster. + (SQL speaks of a catalog cluster instead.) A + database cluster is a collection of databases that will be accessible + through a single instance of a running database server. After + initialization, a database cluster will contain one database named + template1. As the name suggests, this will be used + as a template for any subsequently created database; it should not be + used for actual work. In file system terms, a database cluster will be a single directory - under which all data will be stored. We call this the - data directory or data - area. It is completely up to you where you choose to - store your data, there is no default, although locations such as + under which all data will be stored. We call this the data + directory or data area. It is + completely up to you where you choose to store your data, there is no + default, although locations such as /usr/local/pgsql/data or - /var/lib/pgsql/data are popular. To initialize - a database cluster, use the command initdb, - which is installed with PostgreSQL. The - desired file system location of your database system is indicated - by the option, for example + /var/lib/pgsql/data are popular. To initialize a + database cluster, use the command initdb, which is + installed with PostgreSQL. The desired + file system location of your database system is indicated by the + option, for example > initdb -D /usr/local/pgsql/data @@ -119,6 +119,19 @@ postgres> initdb -D /usr/local/pgsql/data + However, while the directory contents are secure, the default + pg_hba.conf authentication of + trust allows any local user to become the + superuser and connect to the database. If you don't trust your local + users, we recommend you use the initdb option + or to assign a + password to the superuser and modify your + pg_hba.conf accordingly. (Another option: + Your operating system may support ident for + local connections.) + + + LC_COLLATE One surprise you might encounter while running initdb is a notice similar to this one: -- 2.11.0