Article View: news.software.nntp
Article #54663Re: user authentication on Linux for news groups
From: Michael Weber
Date: Sat, 13 Oct 2001 08:19
Date: Sat, 13 Oct 2001 08:19
83 lines
3686 bytes
3686 bytes
You can use the shadow user authentication of your linux box, by adding
following lines to ~news/etc/readers.conf
auth "shadow" {
hosts: "*"
#interesting part
auth: "ckpasswd -s"
#end of interestingpart
}
access "passwords" {
newsgroups: "*,!local.admin,!control*,!junk"
access: RP
}
access "god" {
users: "michael"
newsgroups: "local.*"
access: RPA
}
But, you have to adjust the permissons of
~news/bin/auth/passwd/ckpasswd to have access to the shadow-system, as root
of course:
chown news.shadow ~news/bin/auth/passwd/ckpasswd
chmod 2750 ~news/bin/auth/passwd/ckpasswd
then it should work.
Michael Weber
----- Original Message -----
From: "Anand Vidhani" <avidhani@ggn.aithent.com>
Newsgroups: news.software.nntp
Sent: Friday, October 12, 2001 2:09 PM
Subject: user authentication on Linux for news groups
> Hello,
>
> I am using INN on Linux 7.1. Now I want to do user authetication for
> INN.
> How can we do this?.
> We are using INN on Sun Solaris too. I have used the perl script as
> mentioned below , for user authentication for news groups. Its working
> fine on sun solaris.
> Could any body tell me what changes we require in this perl script so
> that It will work on LINUX 7.1.
> --------------------------------------------------------------------------
-----
> { #!/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;
> }
> --------------------------------------------------------------------------
------
>
> I am a new user of UNIX env.
> PLease help.
>
> Thanks
> Anand Vidhani
Technical Details
Message-ID:
<9q8t9b$22i$00$1@news.t-online.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mailReferences:
<463197c6.0110120409.47c0ab13@posting.google.com>Show Full Headers
Complete Article Headers
Message-ID: <9q8t9b$22i$00$1@news.t-online.com> Subject: Re: user authentication on Linux for news groups Date: Sat, 13 Oct 2001 10:19:08 +0200 From: "Michael Weber" <michael@mmc-startup.com> References: <463197c6.0110120409.47c0ab13@posting.google.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Newsgroups: news.software.nntp Organization: T-Online Lines: 82 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1002961003 00 2130 fNqWSBhSDYpb0 011013 08:16:43 X-Complaints-To: abuse@t-online.com X-Sender: 320067890274-0001@t-dialin.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200