summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-11-01 21:14:03 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-11-01 21:14:03 +0000
commitd1bfa6c72e8087de21a2a2fd0c9c0b7da9e8fc20 (patch)
treea1d8760d07d7d24051e8836871bb4c6c78b5cad1 /doc/src
parent855ffa0be0955399d40e3adb19eb0f7bc30d6cc4 (diff)
Add runtime configuration options to control permission bits and group
owner of unix socket.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/runtime.sgml53
1 files changed, 52 insertions, 1 deletions
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml
index 31810dc19d8..7544a6489ce 100644
--- a/doc/src/sgml/runtime.sgml
+++ b/doc/src/sgml/runtime.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.30 2000/10/20 14:00:49 thomas Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.31 2000/11/01 21:14:00 petere Exp $
-->
<Chapter Id="runtime">
@@ -1031,6 +1031,57 @@ env PGOPTIONS='--geqo=off' psql
</para>
</listitem>
</varlistentry>
+
+ <varlistentry>
+ <term>UNIX_SOCKET_GROUP (<type>string</type>)</term>
+ <listitem>
+ <para>
+ Sets the group owner of the Unix domain socket. (The owning
+ user of the socket is always the user that starts the
+ postmaster.) In combination with the option
+ <option>UNIX_SOCKET_PERMISSIONS</option> this can be used as
+ an additional access control mechanism for this socket type.
+ By default this is the empty string, which uses the default
+ group for the current user. This option can only be set at
+ server start.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>UNIX_SOCKET_PERMISSIONS (<type>integer</type>)</term>
+ <listitem>
+ <para>
+ Sets the access permissions of the Unix domain socket. Unix
+ domain sockets use the usual Unix file system permission set.
+ The option value is expected to be an numeric mode
+ specification in the form accepted by the
+ <function>chmod</function> and <function>umask</function>
+ system calls. (To use the customary octal format the number
+ must start with a <literal>0</literal> (zero).)
+ </para>
+
+ <para>
+ The default permissions are <literal>0777</literal>, meaning
+ anyone can connect. Reasonable alternatives would be
+ <literal>0770</literal> (only user and group, see also under
+ <option>UNIX_SOCKET_GROUP</option>) and
+ <literal>0700</literal> (only user). (Note that actually for
+ a Unix socket, only write permission matters and there is no
+ point in setting or revoking read or execute permissions.)
+ </para>
+
+ <para>
+ This access control mechanism is independent from the one
+ described in <xref linkend="client-authentication">.
+ </para>
+
+ <para>
+ This option can only be set at server start.
+ </para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
</para>
</sect2>