Re: 请教新闻组权限设置!
HOME.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 请教新闻组权限设置!


请彻底删除上一封邮件,因为我忘了改掉我的真实口令。
please forget my tempory password please.
看这封邮件吧。
我会在最近更新我放在网上的相关文章。谢谢。


Johnson
========================================================================

annie,

你好。
很抱歉我文章中的错误误导了你。
开始我一直很纳闷,check_password  是什么程序?
如果我没有猜错,你是直接从我的网页上拷贝而来,是不是?
而我的网页上的 check_password 不过是一类程序的代称而以。

我的 readers.conf 如下:

auth admin {
        hosts: *
        auth: "ckpasswd -s"
        default: <FAIL>
        default-domain: <UNKNOWN>
}

auth rd {
        hosts: 10.0.0.0/24
        default: rd
        default-domain: cn.is-one.net
}

auth "localhost" {
    hosts: "localhost, 127.0.0.1, stdin, 10.0.0.35"
    default: "<localhost>"
}

access rd {
        users: rd@cn.is-one.net
        newsgroups: "*,!control.*,!junk,!control,!local.test"
        localtime: yes
        access: "Read Post"
}

access "localhost" {
    users: "<localhost>,jiangxin.AT.*"
    newsgroups: "*"
    access: RPA
}


access fail {
        users: "<FAIL>@*"
        newsgroups: !*
}


测试结果如下:

$ telnet 10.0.0.7 nntp
Trying 10.0.0.7...
Connected to 10.0.0.7.
Escape character is '^]'.
200 news.rd.is-one.net InterNetNews NNRP server INN 2.3.3 r
listgroup control
411 No such group control
listgroup cn.comp.book
211 Article list follows
1
...
21
.
authinfo user jiangxin
381 PASS required
authinfo pass mypassword
281 Ok
listgroup control
211 Article list follows
.
quit
205 .
Connection closed by foreign host.

===========================================================
Jiang Xin

Email   : johnson.AT.worldhello.net
          Johnson.AT.worldhello.net
Homepage: http://www.worldhello.net
Mobile  : 13910430470
Phone   : 010-85181101-1308 



 
 -----Original Message-----
From: annie [mailto:annie@eitop.com]
Sent: Tuesday, March 25, 2003 3:26 PM 
To: johnson.AT.worldhello.net
Subject: 请教新闻组权限设置!


  johnson,你好!

  请帮忙!我的新闻组权限设置如下(readers.conf)


  auth "passwords" {
          hosts:  "*"
          key:    "pwd"
          auth:   "check_password nntp"
  }
  access "passwords" {
          key:    "pwd"
          newsgroups: "*,!local.test,!control*,!junk"
          access: "Read Post"
  }

  access "admin" {
          users:  "annie"
          key:    "pwd"
          newsgroups: "local.test"
          access: "Read Post"
  }

  我用OE连接新闻组服务器,用户为annie,密码为pwd,出现以下错误提示,这是
  权限设置问题吗?但我的设置是按照你的文档来设置,能告诉如何解决吗?谢谢!

  服务器意外地中断了TCP/IP连接
  配置:
     帐户: 198.198.198.77
     服务器: 198.198.198.77
     用户名: annie
     协议: NNTP
     端口: 119
     安全(SSL): 0
     代码: 800ccc0f