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

index 1ce1ae6bb2e370c142ff1a6201141bcaf8539e74..b002593a2371f751c476940e349f53a7feef685c 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -378,12 +378,14 @@ PostgreSQL documentation
 createuser -P -s -e joe
 Enter password for new role: xyzzy
 Enter it again: xyzzy
-CREATE ROLE joe PASSWORD 'xyzzy' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
+CREATE ROLE joe PASSWORD 'md5b5f5ba1a423792b526f799ae4eb3d59e' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
 
     In the above example, the new password isn't actually echoed when typed,
-    but we show what was typed for clarity.  However the password
-    will appear in the echoed command, as illustrated —
-    so you don't want to use -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 
+    is used, the password will appear in the echoed command
+    (and possibly also in the server log and elsewhere),
+    so you don't want to use 
     anyone else can see your screen.