Re: man readers.conf
HOME.


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

Re: man readers.conf


man ckpasswd

OPTIONS
       -d database
           Read passwords from a database (ndbm or dbm format depending on what your system has) rather than by using
           getpwnam(3).  ckpasswd expects database.dir and database.pag to exist and to be a database keyed by user-
           name with the encrypted passwords as the values.

           While INN doesn't come with a program intended specifically to create such databases, on most systems it's
           fairly easy to write a Perl script to do so.  Something like:

               #!/usr/bin/perl
               use NDBM_File;
               use Fcntl;
               tie (%db, 'NDBM_File', '/path/to/database', O_RDWR | O_CREAT, 0640)
                   or die "Cannot open /path/to/database: $!\n";
               $| = 1;
               print "Username: ";
               my $user = <STDIN>;
               chomp $user;
               print "Password: ";
               my $passwd = <STDIN>;
               chomp $passwd;
               my @alphabet = ('.', '/', 0..9, 'A'..'Z', 'a'..'z');
               my $salt = join '', @alphabet[rand 64, rand 64];
               $db{$user} = crypt ($passwd, $salt);
               untie %db;

  -----Original Message-----
  From: annie [mailto:annie@eitop.com]
  Sent: Thursday, March 27, 2003 10:50 AM
  To: Jiang Xin
  Subject: Re: man readers.conf


  Johnson,
     你好!
     如果使用系统用户,auth: "ckpasswd -f /usr/local/news/db/newsusers",
  在db目录下没有newsusers文件,应如何添加新闻组用户?
    ----- Original Message ----- 
    From: Jiang Xin 
    To: annie 
    Sent: Wednesday, March 26, 2003 7:21 PM
    Subject: 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?