From b16566d77168540730d7ca26f8fe1832f15d450e Mon Sep 17 00:00:00 2001
From: Peter Eisentraut
Date: Sun, 18 Dec 2005 02:17:16 +0000
Subject: Add new psql command \password for changing role password with
client-side password encryption. Also alter createuser command to the same
effect.
---
doc/src/sgml/ref/alter_role.sgml | 12 +++++++++++-
doc/src/sgml/ref/create_role.sgml | 14 +++++++++++++-
doc/src/sgml/ref/psql-ref.sgml | 15 ++++++++++++++-
3 files changed, 38 insertions(+), 3 deletions(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/ref/alter_role.sgml b/doc/src/sgml/ref/alter_role.sgml
index 7ebd8014f29..641c4ef377c 100644
--- a/doc/src/sgml/ref/alter_role.sgml
+++ b/doc/src/sgml/ref/alter_role.sgml
@@ -1,5 +1,5 @@
@@ -182,6 +182,16 @@ ALTER ROLE name RESET
to do that.
+
+ Caution must be exercised when specifying an unencrypted password
+ with this command. The password will be transmitted to the server
+ in cleartext, and it might also be logged in the client's command
+ history or the server log. contains a command
+ \password that can be used to safely change a
+ role's password.
+
+
It is also possible to tie a
session default to a specific database rather than to a role; see
diff --git a/doc/src/sgml/ref/create_role.sgml b/doc/src/sgml/ref/create_role.sgml
index 16cd16ef5ac..9af33ce2120 100644
--- a/doc/src/sgml/ref/create_role.sgml
+++ b/doc/src/sgml/ref/create_role.sgml
@@ -1,5 +1,5 @@
@@ -357,6 +357,18 @@ where option can be:
connection slot> remains for the role, it is possible that
both will fail. Also, the limit is never enforced for superusers.
+
+
+ Caution must be exercised when specifying an unencrypted password
+ with this command. The password will be transmitted to the server
+ in cleartext, and it might also be logged in the client's command
+ history or the server log. The command , however, transmits
+ the password encrypted. Also, contains a command
+ \password that can be used to safely change the
+ password later.
+
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 3d6d0a1d7f7..c0c075f11e3 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1,5 +1,5 @@
@@ -1379,6 +1379,19 @@ lo_import 152801
+
+ \password [ username ]
+
+
+ Changes the password of the specified user or by default the
+ current user. This command prompts for the new password,
+ encrypts it, and sends it to the server. This makes sure that
+ the new password does not appear in the command history, the
+ server log, or elsewhere in cleartext.
+
+
+
+
\pset parameter [ value ]
--
cgit v1.2.3