Re: man readers.conf
HOME.


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

Re: man readers.conf


auth "localhost" {
    hosts: "*"
    auth:       "ckpasswd -s"
    default: "<FAIL>"
    default-domain: "<MYDOMAIN>"
}

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

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

it does work on my computer. 
have you proper set login user/pass?


  -----Original Message-----
  From: annie [mailto:annie@eitop.com]
  Sent: Wednesday, March 26, 2003 7:05 PM
  To: Jiang Xin
  Subject: Re: man readers.conf


  Johnson,
  非常感谢你热心帮助!
  我按你以下方法设置还是不需要密码,你的不也是通过用户来控制权限的?是怎么设置的?
    ----- Original Message ----- 
    From: Jiang Xin 
    To: annie 
    Sent: Wednesday, March 26, 2003 5:57 PM
    Subject: man readers.conf


    man readers.conf
    you can see the following example:

               auth default {
                   auth: "ckpasswd -f /usr/local/news/db/newsusers"
                   default: <FAIL>
                   default-domain: example.com
               }

               auth shell {
                   hosts: *.shell.example.com
                   res: ident
                   auth: "ckpasswd -s"
                   default: <FAIL>
                   default-domain: shell.example.com
               }

               auth dialup {
                   hosts: *.dialup.example.com
                   auth: radius
                   default: <FAIL>
                   default-domain: dialup.example.com
               }

               access shell {
                   users: *@shell.example.com
                   read: *
                   post: "*, !example.admin.*"
               }

               access dialup {
                   users: *@dialup.example.com
                   newsgroups: *,!example.*
                   nnrpdauthsender: true
               }

               access other {
                   users: "*@example.com, !<FAIL>@example.com"
                   newsgroups: *,!example.*
               }

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

               access admin {
                   users: "joe@*,jane@*"
                   newsgroups: *
                   perlfilter: false
               }

    和这个例子比较,你的配置可作如下改进:

    auth "localhost" {
        hosts: "*"
        auth:       "ckpasswd -s"
        default: "<FAIL>"
        # 如果认证失败,设置用户的 ID 为 <FAIL>@<MYDOMAIN> , 象你那样设置为 《localhost》,好像不太好。
        default-domain: "<MYDOMAIN>"
    }

    access "localhost" {
        users: "annie@*"
         # 因为设置了 default-domain,因此认证之后返回的 ID,带上了域名 annie@<MYDOMAIN>
        newsgroups: "test"
        access: RPA
    }

    access fail {
        users: "<FAIL>@*"
        # 你可以通过 "<FAIL>@*" 对认证失败的用户设置权限:禁止读写,或者只读部分组
        newsgroups: !*
    }
      -----Original Message-----
      From: annie [mailto:annie@eitop.com]
      Sent: Wednesday, March 26, 2003 5:33 PM
      To: Jiang Xin
      Subject: Re: my website is update


      哦,没关系.我的设置如下,不需要密码,只要是annie用户,就对test有权限,帮我查查原因,谢谢!

      auth "localhost" {
          hosts: "*"
          auth:       "ckpasswd -s"
          default: "<localhost>"
      }

      access "localhost" {
          users: "annie"
          newsgroups: "test"
          access: RPA
      }
        ----- Original Message ----- 
        From: Jiang Xin 
        To: annie 
        Sent: Wednesday, March 26, 2003 4:48 PM
        Subject: RE: my website is update


        我不用 QQ, ICQ 也很久没用过了。
        chatting is forbidden in our company. 
        I think email is better.
        you can mail me your config file, I will try my best to fix it for you.

        Johnson

Attachment: Outlook.bmp
Description: Windows bitmap