Thread View: news.software.nntp
1 messages
1 total messages
Started by Anand Vidhani
Fri, 12 Oct 2001 12:03
authentication on Linux
Author: Anand Vidhani
Date: Fri, 12 Oct 2001 12:03
Date: Fri, 12 Oct 2001 12:03
45 lines
2577 bytes
2577 bytes
Hello folks!
I am using INN server on Linux and Sun solaris Server.
On sun Solaris user authentiction script written in perl is working.
which is
--------------------------------------------------------------------------------
#!/usr/bin/perl
use NDBM_File;
use Fcntl;
tie (%db,
'NDBM_File', '/us
r/local/news/db/users', O_RDWR | O_CREAT, 0640)
or die
"Cannot open /us
r/local/news/db/users: $!\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
'', @alphab
et[rand 64, rand 64];
$db{$user} =
crypt ($passwd
, $salt);
untie %db;
---------------------------------------------------------------------------------
Can any body tell me what changes we require If I want to run this
perl script on Linux machine.
I am new to Linux.
Thanks for your help
Anand Vidhani
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