|
@@ -147,16 +147,23 @@ bc. python3 -c 'import crypt; print(crypt.crypt("password", salt=crypt.METHOD_SH
|
147
|
147
|
Same for the IRC password hash...
|
148
|
148
|
|
149
|
149
|
bc. # znc --makepass
|
|
150
|
+[ ** ] Type your new password.
|
150
|
151
|
[ ?? ] Enter Password: foo
|
151
|
152
|
[ ?? ] Confirm Password: foo
|
152
|
|
-[ ** ] Use this in the <User> section of your config:
|
153
|
|
-[ ** ] Pass = sha256#4bfc209c5e19874337fd89c80675ad194836efea5efd4189b7f73cd9e0a6094f#,i*Msa0B;w9yR23nm1ZB#
|
|
153
|
+[ ** ] Kill ZNC process, if it's running.
|
|
154
|
+[ ** ] Then replace password in the <User> section of your config with this:
|
|
155
|
+<Pass password>
|
|
156
|
+ Method = sha256
|
|
157
|
+ Hash = 310c5f99825e80d5b1d663a0a993b8701255f16b2f6056f335ba6e3e720e57ed
|
|
158
|
+ Salt = YdlPM5yjBmc/;JO6cfL5
|
|
159
|
+</Pass>
|
|
160
|
+[ ** ] After that start ZNC again, and you should be able to login with the new password.
|
154
|
161
|
|
155
|
|
-Take the string beginning with @sha256#@ and insert it as the value for @irc_password_hash@.
|
|
162
|
+Take the strings after @Hash =@ and @Salt =@ and insert them as the value for @irc_password_hash@ and @irc_password_salt@ respectively.
|
156
|
163
|
|
157
|
164
|
Alternatively, if you don't already have @znc@ installed, Python 3.3 or higher will generate the appropriate string for you on Unix-based platforms (assuming your password is @password@):
|
158
|
165
|
|
159
|
|
-bc. python3 -c 'import crypt; print("sha256#{}#{}".format(*crypt.crypt("password", salt=crypt.METHOD_SHA256).split("$")[2:]))'
|
|
166
|
+bc. python3 -c 'import crypt; print("irc_password_salt: \"{}\"\nirc_password_hash: \"{}\"".format(*crypt.crypt("password", salt=crypt.METHOD_SHA256).split("$")[2:]))'
|
160
|
167
|
|
161
|
168
|
For git hosting, copy your public key into place. @cp ~/.ssh/id_rsa.pub roles/git/files/gitolite.pub@ or similar.
|
162
|
169
|
|