IRCNow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
openbsd:irc:znc [2020/06/10 13:26]
jrmu
openbsd:irc:znc [2020/07/21 05:12]
jrmu
Line 18: Line 18:
 Shell: ​      /​sbin/​nologin Shell: ​      /​sbin/​nologin
 OK? (y/n) [y]: y OK? (y/n) [y]: y
 +</​code>​
  
 I am not sure if this is necessary, but in /​etc/​login.conf,​ I add the following: I am not sure if this is necessary, but in /​etc/​login.conf,​ I add the following:
Line 39: Line 40:
 </​code>​ </​code>​
  
-There should be a line with znc that looks like this (I check to make sure znc has the right login class):+There should be a line with znc that looks like this (I check to make sure znc has the right login class; the '​1001'​ is the uid, which you may find to be different from this example, but it should not be changed):
  
 <​code>​ <​code>​
-znc:​*:​1001:​1001:​znc:​0:​0:​znc:/​home/​znc:/​bin/sh+znc:​*:​1001:​1001:​znc:​0:​0:​znc:/​home/​znc:/​sbin/nologin
 </​code>​ </​code>​
  
Line 48: Line 49:
  
 <​code>​ <​code>​
-cap_mkdb /​etc/​login.conf+$ doas cap_mkdb /​etc/​login.conf
 </​code>​ </​code>​
 +
 +Now change znc shell to /bin/ksh , then continue with the steps below.
  
 <​code>​ <​code>​
Line 65: Line 68:
 </​code>​ </​code>​
  
-I then set the default shell to /​sbin/​nologin:​+ 
 +I then set the default shell to /​sbin/​nologin ​(note: the '​1001'​ is the uid, which you may find to be different from this example, but it should not be changed.):
  
 <​code>​ <​code>​
Line 107: Line 111:
  
 <​code>​ <​code>​
-# HOME=/​home/​znc/​+export ​HOME=/​home/​znc/​
 # chroot -u znc -g znc /home/znc znc --makeconf # chroot -u znc -g znc /home/znc znc --makeconf
 </​code>​ </​code>​
Line 134: Line 138:
 # chown znc:znc /​home/​znc/​home/​znc/​.znc/​my.example.com.* # chown znc:znc /​home/​znc/​home/​znc/​.znc/​my.example.com.*
 </​code>​ </​code>​
- 
-Inside ~: 
  
 <​code>​ <​code>​
Line 178: Line 180:
  
 <​code>​ <​code>​
-AnonIPLimit = 200+AnonIPLimit = 10000
 AuthOnlyViaModule = false AuthOnlyViaModule = false
 ConfigWriteDelay = 0 ConfigWriteDelay = 0
Line 195: Line 197:
 SSLKeyFile = /​home/​znc/​.znc/​my.example.com.key SSLKeyFile = /​home/​znc/​.znc/​my.example.com.key
 ServerThrottle = 30 ServerThrottle = 30
-Version = 1.7.4+Version = 1.7.5
  
 <​Listener listener0>​ <​Listener listener0>​