过程 19.1. innd
下载及安装
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 *
配置
inn.conf
cd /etc/news/ chown news.news inn.conf domain: example.org server: localhost fromhost: news.example.org moderatormailer: openunix@163.com
storage.conf
vi storage.conf
method tradspool {
newsgroups: *
class: 0
}
readers.conf
vi readers.conf
auth "local" {
hosts: "*"
default: "*"
}
access "local" {
users: "*"
newsgroups: "*"
}
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
inncheck
sudo -u news /usr/lib/news/bin/inncheck
start
service innd start Starting INND system: [ OK ]
/etc/init.d/innd start
过程 19.2. Authinfo
ckpasswd
chown root /usr/lib/news/bin/auth/passwd/ckpasswd chmod 4555 /usr/lib/news/bin/auth/passwd/ckpasswd
shadow auth
auth local {
auth: "ckpasswd -s"
}
access local {
users: "neo"
newsgroups: "*,!junk,!control,!control.*"
}
passwd file
auth local {
auth: "ckpasswd -f /etc/news/newsusers"
}
access local {
users: "neo"
newsgroups: "*,!junk,!control,!control.*"
}
dbm,ndbm
auth: "ckpasswd -d /etc/news/newsusers.ndbm"