🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by OniOn Mon, 11 Nov 2002 14:03
INN password file auth fail...
#61918
Author: OniOn
Date: Mon, 11 Nov 2002 14:03
46 lines
2232 bytes
I want to use password authorization but fail.... would u please help~?
thanks~~~

syslog:

Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 connect
Nov 11 21:58:02 server nnrpd[4271]: Reading access from
/etc/news/readers.conf
Nov 11 21:58:02 server nnrpd[4271]: Auth strategy 'localhost' does not match
client.  Removing.
Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 res <pub>
Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 no_match_user <pub> nesta
Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 match_user <pub> *
Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 auth starting authenticator
/usr/bin/auth/passwd/ckpasswd -f /etc/passwd.nntp
Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 bad_hook program exited with
status 1
Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 auth authenticator failed
Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 no_match_user <pub> nesta
Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 match_user <pub> *
Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 bad_auth
Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 times user 0.010 system
0.010 elapsed 0.048


readers.conf:

auth pub {
 auth: "/usr/bin/auth/passwd/ckpasswd -f /etc/passwd.nntp"
 default: <pub>
}
access pub {
 users: *
 newsgroups: pub
 access: RP
}

# CSS communitte access
access css {
 users: nesta
 newsgroups: *
 access: RPA
}


Re: INN password file auth fail...
#61923
Author: Jeffrey M. Vinocur
Date: Tue, 12 Nov 2002 00:38
63 lines
2601 bytes
In article <aqodb1$7j97@imsp212.netvigator.com>,
OniOn <pcking@softhome.net> wrote:
>I want to use password authorization but fail.... would u please help~?

Are you sure /etc/passwd.nntp is in the right format and that you
entered the correct username and password?

Try running ckpasswd on the commandline, and entering 

ClientAuthname: john
ClientPassword: secret
^D

(with whatever username and password you expect to work).


>Nov 11 21:58:02 server nnrpd[4271]: Auth strategy 'localhost' does not match
>client.  Removing.

Huh, you didn't show all of your readers.conf, I think.  No
matter.


>Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 res <pub>
>Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 no_match_user <pub> nesta
>Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 match_user <pub> *

Ok, looks fine so far.


>Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 auth starting authenticator
>/usr/bin/auth/passwd/ckpasswd -f /etc/passwd.nntp
>Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 bad_hook program exited with
>status 1

Did you check the news.notice error log for other messages?  What
about $pathlog/errlog?  It really should have printed an error
message somewhere.


>auth pub {
> auth: "/usr/bin/auth/passwd/ckpasswd -f /etc/passwd.nntp"
> default: <pub>
>}

Are you sure you want that default there?  It means that anyone
will be able to read and post to all groups without
authenticating.


>access pub {
> users: *
> newsgroups: pub
> access: RP
>}

You don't need "access: RP" since that's the default.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN password file auth fail...
#61924
Author: OniOn
Date: Tue, 12 Nov 2002 00:51
81 lines
2898 bytes
I have tried
ClientAuthname: john
ClientPassword: secret
^D

and it display
User: john

what should I do now?


"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
news:aqpii3$njm$3@puck.litech.org...
> In article <aqodb1$7j97@imsp212.netvigator.com>,
> OniOn <pcking@softhome.net> wrote:
> >I want to use password authorization but fail.... would u please help~?
>
> Are you sure /etc/passwd.nntp is in the right format and that you
> entered the correct username and password?
>
> Try running ckpasswd on the commandline, and entering
>
> ClientAuthname: john
> ClientPassword: secret
> ^D
>
> (with whatever username and password you expect to work).
>
>
> >Nov 11 21:58:02 server nnrpd[4271]: Auth strategy 'localhost' does not
match
> >client.  Removing.
>
> Huh, you didn't show all of your readers.conf, I think.  No
> matter.
>
>
> >Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 res <pub>
> >Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 no_match_user <pub> nesta
> >Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 match_user <pub> *
>
> Ok, looks fine so far.
>
>
> >Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 auth starting
authenticator
> >/usr/bin/auth/passwd/ckpasswd -f /etc/passwd.nntp
> >Nov 11 21:58:02 server nnrpd[4271]: 192.168.1.2 bad_hook program exited
with
> >status 1
>
> Did you check the news.notice error log for other messages?  What
> about $pathlog/errlog?  It really should have printed an error
> message somewhere.
>
>
> >auth pub {
> > auth: "/usr/bin/auth/passwd/ckpasswd -f /etc/passwd.nntp"
> > default: <pub>
> >}
>
> Are you sure you want that default there?  It means that anyone
> will be able to read and post to all groups without
> authenticating.
>
>
> >access pub {
> > users: *
> > newsgroups: pub
> > access: RP
> >}
>
> You don't need "access: RP" since that's the default.
>
>
> --
> Jeffrey M. Vinocur
> jeff@litech.org


Re: INN password file auth fail...
#61925
Author: Jeffrey M. Vinocur
Date: Tue, 12 Nov 2002 04:04
21 lines
1532 bytes
In article <aqpjam$t2q55@imsp212.netvigator.com>,
OniOn <pcking@softhome.net> wrote:
>I have tried
>ClientAuthname: john
>ClientPassword: secret
>^D
>
>and it display
>User: john

Ok, that means that the password file is in the correct format,
you typed the password correctly, etc.

What about this thing that I suggested:

>> Did you check the news.notice error log for other messages?  What
>> about $pathlog/errlog?  It really should have printed an error
>> message somewhere.


Re: INN password file auth fail...
#61926
Author: OniOn
Date: Tue, 12 Nov 2002 07:36
45 lines
2589 bytes
there is nothing in errlog
and for news.notice:

Nov 12 15:31:35 server nnrpd[3985]: Reading config from /etc/news/inn.conf
Nov 12 15:31:35 server nnrpd[3985]: Reading access from
/etc/news/readers.conf
Nov 12 15:31:35 server nnrpd[3985]: Auth strategy 'localhost' does not match
client.  Removing.
Nov 12 15:31:35 server nnrpd[3985]: 192.168.1.2 res <pub>
Nov 12 15:31:35 server nnrpd[3985]: 192.168.1.2 no_match_user <pub> !<pub>
Nov 12 15:31:35 server nnrpd[3985]: 192.168.1.2 match_user <pub> *
Nov 12 15:31:35 server nnrpd[3985]: 192.168.1.2 auth starting authenticator
/usr/bin/auth/passwd/ckpasswd -f /etc/passwd.nntp
Nov 12 15:31:35 server nnrpd[3985]: 192.168.1.2 bad_hook program exited with
status 1
Nov 12 15:31:35 server nnrpd[3985]: 192.168.1.2 auth authenticator failed
Nov 12 15:31:35 server nnrpd[3985]: 192.168.1.2 no_match_user <pub> !<pub>
Nov 12 15:31:35 server nnrpd[3985]: 192.168.1.2 match_user <pub> *


"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
news:aqpujm$vs$1@puck.litech.org...
> In article <aqpjam$t2q55@imsp212.netvigator.com>,
> OniOn <pcking@softhome.net> wrote:
> >I have tried
> >ClientAuthname: john
> >ClientPassword: secret
> >^D
> >
> >and it display
> >User: john
>
> Ok, that means that the password file is in the correct format,
> you typed the password correctly, etc.
>
> What about this thing that I suggested:
>
> >> Did you check the news.notice error log for other messages?  What
> >> about $pathlog/errlog?  It really should have printed an error
> >> message somewhere.
>
>


Re: INN password file auth fail...
#61927
Author: Jeffrey M. Vinocur
Date: Tue, 12 Nov 2002 11:22
8 lines
1272 bytes
In article <aqqb1s$2br2@imsp212.netvigator.com>,
OniOn <pcking@softhome.net> wrote:
>
>/usr/bin/auth/passwd/ckpasswd -f /etc/passwd.nntp

Hmm.  Try removing the full path to ckpasswd from readers.conf.

Re: INN password file auth fail...
#61928
Author: OniOn
Date: Tue, 12 Nov 2002 11:41
18 lines
1461 bytes
wo~
this work!!!!
thank you very much~~~
however would you explain why this can work??
thanks~~~

"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
news:aqqo93$fpq$1@puck.litech.org...
> In article <aqqb1s$2br2@imsp212.netvigator.com>,
> OniOn <pcking@softhome.net> wrote:
> >
> >/usr/bin/auth/passwd/ckpasswd -f /etc/passwd.nntp
>
> Hmm.  Try removing the full path to ckpasswd from readers.conf.
>


Re: INN password file auth fail...
#61944
Author: Jeffrey M. Vinocur
Date: Tue, 12 Nov 2002 22:46
28 lines
1932 bytes
In article <aqqpcs$2c05@imsp212.netvigator.com>,
OniOn <pcking@softhome.net> wrote:
>
>"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
>news:aqqo93$fpq$1@puck.litech.org...
>> In article <aqqb1s$2br2@imsp212.netvigator.com>,
>> OniOn <pcking@softhome.net> wrote:
>> >
>> >/usr/bin/auth/passwd/ckpasswd -f /etc/passwd.nntp
>>
>> Hmm.  Try removing the full path to ckpasswd from readers.conf.
>
>this work!!!!
>thank you very much~~~
>however would you explain why this can work??

Well, I guess that's how it's designed, or whatever.

It's not very clear from the manpage, to be honest (after all, I
would say that "/bin/ls" is a program in "/bin").  We should
probably fix that.  Or perhaps permit a full path there instead?
(Russ, do you have a preference?)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN password file auth fail...
#61947
Author: Russ Allbery
Date: Tue, 12 Nov 2002 23:17
18 lines
1798 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:

> Well, I guess that's how it's designed, or whatever.

> It's not very clear from the manpage, to be honest (after all, I would
> say that "/bin/ls" is a program in "/bin").  We should probably fix
> that.  Or perhaps permit a full path there instead?  (Russ, do you have
> a preference?)

It seems like supporting a full path would be reasonable to me; I'm not
sure what it would hurt, at least.

-- 
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: INN password file auth fail...
#61963
Author: Jeffrey M. Vinocur
Date: Wed, 13 Nov 2002 21:34
22 lines
1910 bytes
In article <yllm3ynzsx.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Jeffrey M Vinocur <jeff@litech.org> writes:
>
>> It's not very clear from the manpage, to be honest (after all, I would
>> say that "/bin/ls" is a program in "/bin").  We should probably fix
>> that.  Or perhaps permit a full path there instead?  (Russ, do you have
>> a preference?)
>
>It seems like supporting a full path would be reasonable to me; I'm not
>sure what it would hurt, at least.

Ok, just committed to CURRENT.  Also, it seems that a shell is
not spawned for pipelines, redirections, or globs, so I mentioned
that in the documentation.  Potentially somebody should pull
innd/util.c:{Spawn(),NeedShell()} and nnrpd/perm.c:ExecStuff()
out into lib/ somewhere, but not today.

-- 
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