Преглед на файлове

Avoid opportunity for copy-paste trouble

Also more scriptable, in vein of alternative commands provided
Jason Ghent преди 7 години
родител
ревизия
2a6eb0a66a
променени са 1 файла, в които са добавени 2 реда и са изтрити 6 реда
  1. 2
    6
      README.md

+ 2
- 6
README.md Целия файл

@@ -117,12 +117,8 @@ All of the variables in `group_vars/sovereign` must be set for sovereign to func
117 117
 
118 118
 Setting `password_hash` for your mail users is a bit tricky. You can generate one using [doveadm-pw](http://wiki2.dovecot.org/Tools/Doveadm/Pw).
119 119
 
120
-    # doveadm pw -s SHA512-CRYPT
121
-    Enter new password: foo
122
-    Retype new password: foo
123
-    {SHA512-CRYPT}$6$drlIN9fx7Aj7/iLu$XvjeuQh5tlzNpNfs4NwxN7.HGRLglTKism0hxs2C1OvD02d3x8OBN9KQTueTr53nTJwVShtCYiW80SGXAjSyM0
124
-
125
-Remove `{SHA512-CRYPT}` and insert the rest as the `password_hash` value.
120
+    # doveadm pw -p'YOUR_PASSWORD' -s SHA512-CRYPT | sed -e 's/{.*}//'
121
+    $6$drlIN9fx7Aj7/iLu$XvjeuQh5tlzNpNfs4NwxN7.HGRLglTKism0hxs2C1OvD02d3x8OBN9KQTueTr53nTJwVShtCYiW80SGXAjSyM0
126 122
 
127 123
 Alternatively, if you don’t already have `doveadm` installed, Python 3.3 or higher on Linux will generate the appropriate string for you (assuming your password is `password`):
128 124
 

Loading…
Отказ
Запис