$ 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.