How do I reset my ZNC IRC Bouncer password from Shell or SSH?

To reset your ZNC password from SSH, follow these instructions after logging into your shell account:



[~] # znc --makepass
[ ** ] Type your new password.
[ ?? ] Enter Password:
[ ?? ] Confirm Password:
[ ** ] Kill ZNC process, if it's running. (znc-kill)
[ ** ] Then replace password* in the <User> section of your config with this:
<Pass password> Method = sha256     Hash = 60adfe135ebd848467a42e6ccc49370e847b30920fcdf5056a139d5b3c4d5694
    Salt = F7w*eorWlo9z8+.IFxmR </Pass>
[ ** ] After that start ZNC again, and you should be able to login with the new password.




* Note: You can edit your znc.conf with your favorite editor, or just use the command:

[~]# nano ~/.znc/configs/znc.conf





Need Additional Help?


To start your znc, simply type:

 [~]# znc



If you receive an error message saying your ZNC is already running such as this:


 [~]# znc
 [ .. ] Checking for list of available modules...
 [ >> ] ok
 [ .. ] Opening config [/home/username/.znc/configs/znc.conf]...
 [ !! ] ZNC is already running on this config.
 [ ** ] Unrecoverable config error.


This means you need to first stop your running ZNC process and then start it with the new <Pass> entry.


To find the PID # of your running ZNC type "ps x":

 [~]# ps x
  PID TTY      STAT   TIME COMMAND
16650 pts/19   S      0:00 -bash
20721 ?        Ss     0:09 SCREEN irssi
20722 pts/12   Ss+    3:26 irssi
24068 ?        Ssl    0:00 znc
24344 pts/19   R+     0:00 ps x


Find the corresponding PID# in the PID column on the same line as your znc, and then kill it:

[~]# kill -9 24068


Then start your ZNC again:

[~]# znc

 

 

  • 7 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

How to install and configure a ZNC IRC Bouncer

Configuration First, let's start building your ZNC config:      /usr/local/bin/znc --makeconf...

How to install and configure a psybnc IRC bouncer

How to install and setup psyBNC This article explains step by step on how to download, install...

How do I restart my ZNC IRC bouncer?

To start your znc, simply type:  [~]# zncIf you receive an error message saying your ZNC is...

How do I connect to the psyBNC after its installed?

To connect to your psyBNC enter /server bnc.kire.net:port#When prompted type /quote pass...