Update password example.
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 21 Jun 2007 12:20:10 +0000 (12:20 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 21 Jun 2007 12:20:10 +0000 (12:20 +0000)
doc/src/sgml/ref/createuser.sgml

index 495db8f797d25326c7f69e9d5f13c66fcaf16592..5633065c542d7585b0858d21f4b06df146926283 100644 (file)
@@ -378,12 +378,14 @@ PostgreSQL documentation
 <prompt>$ </prompt><userinput>createuser -P -s -e joe</userinput>
 <computeroutput>Enter password for new role: </computeroutput><userinput>xyzzy</userinput>
 <computeroutput>Enter it again: </computeroutput><userinput>xyzzy</userinput>
-<computeroutput>CREATE ROLE joe PASSWORD 'xyzzy' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;</computeroutput>
+<computeroutput>CREATE ROLE joe PASSWORD 'md5b5f5ba1a423792b526f799ae4eb3d59e' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;</computeroutput>
 </screen>
     In the above example, the new password isn't actually echoed when typed,
-    but we show what was typed for clarity.  However the password
-    <emphasis>will</> appear in the echoed command, as illustrated &mdash;
-    so you don't want to use <literal>-e</> when assigning a password, if
+    but we show what was typed for clarity.  As you see, the password is
+    encrypted before it is sent to the client.  If the option <option>--unencrypted</option>
+    is used, the password <emphasis>will</> appear in the echoed command
+    (and possibly also in the server log and elsewhere),
+    so you don't want to use <option>-e</> in that case, if
     anyone else can see your screen.
    </para>
  </refsect1>