Home | Mirror | Search

第 50 章 News Group (innd)

目錄

1. User Authentication
2. usenet 管理
3. 通過SSL連接
4. src.rpm 安裝
5. 常用新聞組

homepage: http://www.isc.org/inn.html

過程 50.1. innd

  1. debian 安裝

    sudo apt-get install inn2
    			
  2. 配置

    1. inn.conf

      cd /etc/news/
      chown news.news inn.conf
      domain:                 example.org
      server:                 localhost
      fromhost:               news.example.org
      moderatormailer:        openunix@163.com
      		    	
    2. storage.conf

      vi storage.conf
      method tradspool {
              newsgroups: *
              class: 0
      }
      		    	
    3. readers.conf

      vi readers.conf
      auth "local" {
              hosts: "*"
              default: "*"
      }
      
      access "local" {
              users: "*"
              newsgroups: "*"
      }
      		    	
  3. start

    /etc/init.d/innd start

    service innd start
    Starting INND system:                                      [  OK  ]
    			

    sudo ufw allow nntp

news://news.example.org

1. User Authentication

過程 50.2. Authinfo

  1. ckpasswd

    chown root /usr/lib/news/bin/auth/passwd/ckpasswd
    chmod 4555 /usr/lib/news/bin/auth/passwd/ckpasswd
    			
  2. shadow auth

    $ sudo vim /etc/news/readers.conf
    
    auth local {
            auth: "ckpasswd -s"
    }
    
    access local {
            users: "neo"
            newsgroups: "*,!junk,!control,!control.*"
    }
    			
  3. passwd file

    auth local {
           auth: "ckpasswd -f /etc/news/newsusers"
    }
    
    access local {
            users: "neo"
            newsgroups: "*,!junk,!control,!control.*"
    }
    			
  4. dbm,ndbm

    auth: "ckpasswd -d /etc/news/newsusers.ndbm"
    			
comments powered by Disqus