第 19 章 News Group (innd)

目录

User Authentication

过程 19.1. innd

  1. 下载及安装

    wget ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/i386/SRPMS/inn-2.3.5-12.src.rpm
    cd /usr/src/redhat/SPECS
    rpmbuild --ba inn.spec
    cd /usr/src/redhat/RPMS/i386/
    rpm -ivh *
    			
  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. makedbz

    cd /var/lib/news
    chmod 664 active
    sudo -u news /usr/lib/news/bin/makedbz -i
    mv history.n.dir history.dir
    mv history.n.hash history.hash
    mv history.n.index history.index
    			
  4. inncheck

    sudo -u news /usr/lib/news/bin/inncheck
    			
  5. start

    service innd start
    Starting INND system:                                      [  OK  ]
    			

    /etc/init.d/innd start

news://news.example.org

User Authentication

过程 19.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

    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"