知乎專欄 | 多維度架構 | 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者” |
過程 36.2. Authinfo
ckpasswd
chown root /usr/lib/news/bin/auth/passwd/ckpasswd chmod 4555 /usr/lib/news/bin/auth/passwd/ckpasswd
shadow auth
$ sudo vim /etc/news/readers.conf 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"