Thread View: news.software.nntp
6 messages
6 total messages
Started by Aline Krus
Sun, 05 May 2002 17:52
local news server....
Author: Aline Krus
Date: Sun, 05 May 2002 17:52
Date: Sun, 05 May 2002 17:52
47 lines
1985 bytes
1985 bytes
Hello..
I install INN-2.3.2 and I'll use for local news server.
and...I want to use "user authentication"
I already modify readers.conf file..
------------------------------------------------------------------
auth "passwords" {
hosts: "*"
key: "pwd"
auth: "ckpasswd -d usr/local/news/db/newspasswd"
default: "<FAIL>"
}
access "passwords" {
key: "pwd"
users: "*, !news"
newsgroups: "*, !control, !control.*, !junk"
access: "RPA"
}
access "admin" {
users: "news"
key: "pwd"
newsgroups: "*"
access: "RPA"
}
--------------------------------------------------------------------
But...I don't know how I create "newspasswd" file....
Is it script file??
.....very difficult for me....
If anyone know about this....
plz help me...and show me a example "newspasswd" file...
Thank you..
Re: local news server....
Author: Aline Krus
Date: Sun, 05 May 2002 21:45
Date: Sun, 05 May 2002 21:45
51 lines
2288 bytes
2288 bytes
I modify reader.conf file...
ckpasswd file option is -f
This is all contents of my readers.conf file...
----------------------------------------------------------------------------
-
auth "passwords" {
hosts: "*"
key: "pwd"
auth: "ckpasswd -f /usr/local/news/db/newspasswd"
default: "<FAIL>"
}
access "passwords" {
key: "pwd"
users: "*, !news"
newsgroups: "*, !control, !control.*, !junk"
access: "RPA"
}
access "admin" {
users: "news"
key: "pwd"
newsgroups: "*"
access: "RPA"
}
----------------------------------------------------------------------------
-
and I create newspasswd file (similar to /etc/passwd file..)
But I have some problem. now
1. Even though I don't log in this news server, I can connect ,read and
write to this server!!!
2. How can I create new user's username and password? As I know...I can't
modify newspasswd file...because It is almost similar to passwd file..
It is too difficult to me..
plz...Help me...
Re: local news server....
Author: Russ Allbery
Date: Mon, 06 May 2002 05:54
Date: Mon, 06 May 2002 05:54
56 lines
3009 bytes
3009 bytes
Aline Krus <geenie2010@hanmail.net> writes:
> I already modify readers.conf file..
> auth: "ckpasswd -d usr/local/news/db/newspasswd"
> But...I don't know how I create "newspasswd" file....
> Is it script file??
> .....very difficult for me....
Here's the relevant excerpt from the current ckpasswd documentation:
-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
username 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;
Note that this will echo back the password when typed; there are
obvious improvements that could be made to this, but it should be a
reasonable start.
This option will not be available on systems without dbm or ndbm
libraries.
You may be able to just copy that script, change the path, and use it,
although I didn't test it extensively.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: local news server....
Author: Rebecca Ore
Date: Mon, 06 May 2002 11:25
Date: Mon, 06 May 2002 11:25
27 lines
2135 bytes
2135 bytes
"Aline Krus" <geenie2010@hanmail.net> writes: > > 2. How can I create new user's username and password? As I know...I can't > modify newspasswd file...because It is almost similar to passwd file.. > > It is too difficult to me.. > > plz...Help me... > I use the script Russ posted above. You want to make a copy of it in /news/bin, rename it something like makenewuser.pl, and chmod it -- chmod o+x /path/to/script. You need to edit the script to create the newspasswd file whereever you want it. Yes, you can't edit it easily (I assume that new passwords will overwrite old ones for old users). To create a new news account, you type "perl /news/bin/makenewuser.pl" The program prints "user" and you type in the user name and hit enter. The program prints "password" and you type in the password. Then add the user name to the appropriate access category. -- Rebecca Ore
Re: Thank you....
Author: Aline Krus
Date: Mon, 06 May 2002 16:29
Date: Mon, 06 May 2002 16:29
29 lines
1985 bytes
1985 bytes
Thank you very much...:-) "Jeffrey M. Vinocur" <jeff@litech.org> wrote in message news:ab7d7q$ehs$3@marduk.litech.org... > In article <ab5j79$vhh$1@news.kreonet.re.kr>, > Aline Krus <geenie2010@hanmail.net> wrote: > > > >1. Even though I don't log in this news server, I can connect ,read and > >write to this server!!! > > Yes, because your default name of "<FAIL>" is matched by the > "users: *" and thus gets access. It's probably best just to > delete the "default" line entirely. > > > >2. How can I create new user's username and password? As I know...I can't > >modify newspasswd file...because It is almost similar to passwd file.. > > Do you have Apache installed? You can use the htpasswd tool > to work with these files. > > > -- > Jeffrey M. Vinocur > jeff@litech.org
Re: local news server....
Author: Jeffrey M. Vinocur
Date: Tue, 07 May 2002 02:13
Date: Tue, 07 May 2002 02:13
22 lines
1682 bytes
1682 bytes
In article <ab5j79$vhh$1@news.kreonet.re.kr>, Aline Krus <geenie2010@hanmail.net> wrote: > >1. Even though I don't log in this news server, I can connect ,read and >write to this server!!! Yes, because your default name of "<FAIL>" is matched by the "users: *" and thus gets access. It's probably best just to delete the "default" line entirely. >2. How can I create new user's username and password? As I know...I can't >modify newspasswd file...because It is almost similar to passwd file.. Do you have Apache installed? You can use the htpasswd tool to work with these files. -- Jeffrey M. Vinocur jeff@litech.org
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads