LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-07-2006, 02:20 PM   #1
dougtheslug
LQ Newbie
 
Registered: May 2005
Distribution: Debian
Posts: 14

Rep: Reputation: 0
ircd - o-lines not working... mkpasswd?


I have been running an IRC server for ages, and I want to amalgamate my irc server with another server (mail) running linux. I have never setup an IRC server on linux. (I ran a MacOS irc server for a couple years, and then a win IRC server for maybe 4 years)

What I can't get to work is the o-lines. And it could be the o-lines, or it could be something else. Unfortunately, documentation does not help in this case.

First, the server I'm setting this up on is debian, and I'm using ircd-ircu. Everything comes up and works just fine, except for the fact that I can't get myeslf to show up as an server op.

Digging through the ircd.conf.sample indicate that
O:<host/IP>:<PW>:<nick>::<class>
is what's needed, and to use mkpasswd to encrypt the PW

so off I go writing a catchall O:line to get it up and running
O:*@*:<Password>:doug::1
now here is potential problem #1
mkpasswd (then it prompts to enter password) returns a different string each time. This is based on the salt, but what's the point of encrypting the password if the salt is different every time? The server documentation does not state "use this salt", it just says "encrypt using mkpasswd". So how do I know if when ircu goes to check the password, if it's working or not, since mkpasswd returns a differnt string each time? The server is not going to check 65 thousand combinations of the encrypted password, once for each salt to get a match on the password in the file... Yeah, I'm at a loss here...

Next, to get this thing setup, I have a single Y line and a single I line... (for reference)
Y:2:180:0:200:9000000 # up to 200 connections in class 2
I:*@192.168.0.21::Unresolved::2 # using specific IP, unresolved hostname, connect as class 2

and then with the O line above
O:*@*:VzWgnZoY0Wa7c:doug::2
(note: the password is as it appears in the config file, except for a single character which was changed for extra paranoia)

yet when I connect with my client (xchat) with my password in the appropriate field, nothing happens.
 
Old 11-14-2007, 03:14 PM   #2
karora
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
oper mode and how salted passwords work

In order to become an operator after you've connected to your IRC server you need to use the /oper command.

i.e.:

/oper username password

Also, the way the salted passwords work is that the comparing algorithm can extract the salt from the finished password, appropriately attach it to the plaintext, apply the hashing algorithm and reattach the salt and that is what is compared to the original salted hash.

It is explicitly designed to have a different value for the same password from one salt to the next, so that you can't know that two given passwords are actually the same.

Regards,
Andrew McMillan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mkpasswd on RH9 cramer Linux - Newbie 4 06-22-2006 10:50 PM
Using mkpasswd with passwd lapthorn Linux - Security 2 02-23-2005 07:53 AM
mkpasswd/group? vickr1z Linux - Newbie 0 09-23-2004 02:52 PM
mkpasswd LinuxRam Linux - Security 1 08-24-2004 03:24 AM
mkpasswd gadfly Slackware 2 09-13-2003 09:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration