🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by anandmithil_shah Thu, 16 Jun 2005 13:24
security issue
#71871
Author: anandmithil_shah
Date: Thu, 16 Jun 2005 13:24
19 lines
1717 bytes
hey i have setup the inn.2.4.1 on my machine.
i start mozilla news and create a account named anand for news.
when i try to retrive the news for anand, it will ask for username and
password that i don't know.
i will send u here my readers.conf for ref:

auth "anand" {
            hosts: "*"
            auth: "ckpasswd"
}
access "anand" {
            users: "anand"
            read: "deeproot.co.in.support"
            post: ""
}

here one problem is also there that though anand has not posting right
on deeproot.co.in.support, still it can post it.
Re: security issue
#71872
Author: Russ Allbery
Date: Thu, 16 Jun 2005 15:22
34 lines
2238 bytes
anandmithil shah <anandmithil_shah@yahoo.com> writes:

> hey i have setup the inn.2.4.1 on my machine.
> i start mozilla news and create a account named anand for news.
> when i try to retrive the news for anand, it will ask for username and
> password that i don't know.

ckpasswd by default attempts to do PAM authentication, then attempts to
fall back on looking for crypt passwords in /etc/passwd, and then just
starts always failing.  See the ckpasswd man page if you want other
behavior.

> i will send u here my readers.conf for ref:

> auth "anand" {
>             hosts: "*"
>             auth: "ckpasswd"
> }
> access "anand" {
>             users: "anand"
>             read: "deeproot.co.in.support"
>             post: ""
> }

> here one problem is also there that though anand has not posting right
> on deeproot.co.in.support, still it can post it.

Is that your entire readers.conf file?

-- 
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: security issue
#71875
Author: anandmithil_shah
Date: Fri, 17 Jun 2005 07:07
78 lines
4979 bytes
yes sir it is similar to this, as i have one more auth and access
defined for "srinidhi", one another user,but it is same for "srinidhi"
user

i have generated /etc/pamd.d/nnrpd file having the content
----------------------------------------------------------------------------------
nnrpd   auth            requisite       pam_nologin.so
nnrpd   auth            required        pam_listfile.so \
        onerr=succeed item=user sense=deny file=/etc/news/readers.deny
nnrpd   auth            required        pam_unix.so

nnrpd   account         required        pam_unix.so
the above file is not default genarated
------------------------------------------------------------------------------------
following log will be generated while i tyr to login :

Jun 17 15:57:13 anand nnrpd[2111]: anand.lan.deeproot.co.in (127.0.0.1)
connect
Jun 17 15:57:13 anand nnrpd[2111]: Reading access from
/usr/local/inn/etc/readers.conf
Jun 17 15:57:13 anand nnrpd[2111]: anand.lan.deeproot.co.in
no_success_auth
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in auth
starting authenticator ckpasswd
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in bad_hook
program caught signal 15
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in auth
authenticator failed
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in auth
starting authenticator ckpasswd
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in bad_hook
program caught signal 15
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in auth
authenticator failed
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in
no_success_auth
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in bad_auth
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in times user
0.008 system 0.008 idle 0.010 elapsed 6.961
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in time 6962
idle 5785(4) nntpwrite 793(9)
Jun 17 15:57:13 anand nnrpd[2111]: anand.lan.deeproot.co.in (127.0.0.1)
connect
Jun 17 15:57:13 anand nnrpd[2111]: Reading access from
/usr/local/inn/etc/readers.conf
Jun 17 15:57:13 anand nnrpd[2111]: anand.lan.deeproot.co.in
no_success_auth
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in auth
starting authenticator ckpasswd
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in bad_hook
program caught signal 15
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in auth
authenticator failed
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in auth
starting authenticator ckpasswd
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in bad_hook
program caught signal 15
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in auth
authenticator failed
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in
no_success_auth
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in bad_auth
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in times user
0.008 system 0.008 idle 0.010 elapsed 6.961
Jun 17 15:57:20 anand nnrpd[2111]: anand.lan.deeproot.co.in time 6962
idle 5785(4) nntpwrite 793(9)
-----------------------------------------------------------------------------------------------
i had also use the utility given in man page of chkpasswd from command
prompt:
(echo 'ClientAuthname: anand' ; echo 'ClientPassword: anand') \
               | ckpasswd -f /etc/passwd
but it will not return with 0 status and give me error
ckpasswd: invalid password for user anand
--------------------------------------------------------------------------------------------------
i don't have anyidea abt pamckpasswd whether i have o installed in
manually or ...?
bye
Re: security issue
#71893
Author: anandmithil_shah
Date: Fri, 17 Jun 2005 08:31
29 lines
2062 bytes
i have the problem regarding the authentication,now i will authenticate
throgh shadow,using ckpasswd -s option,
but i again i have the problem regarding reding and posting
i will send u my readers.conf file
though anand has no right ot post on deeproot.co.in.support, still he
can post the message.how can it possible? help me
##anand
auth "anand" {
        hosts: "*"
        auth: "ckpasswd -s"
}
access "anand" {
        users:  "anand"
        read:   "deeproot.co.in.support"
        post:   ""
}


##srinidhi
auth "srinidhi" {
        hosts: "*"
        auth: "ckpasswd -s"
}
access "srinidhi" {
        users:  "srinidhi"
        read:   "deeproot.co.in.support"
        post:   ""
}
Re: security issue
#71888
Author: Russ Allbery
Date: Fri, 17 Jun 2005 17:50
42 lines
2557 bytes
anandmithil shah <anandmithil_shah@yahoo.com> writes:

> though anand has no right ot post on deeproot.co.in.support, still he
> can post the message.how can it possible? help me

> ##anand
> auth "anand" {
>         hosts: "*"
>         auth: "ckpasswd -s"
> }
> access "anand" {
>         users:  "anand"
>         read:   "deeproot.co.in.support"
>         post:   ""
> }

> ##srinidhi
> auth "srinidhi" {
>         hosts: "*"
>         auth: "ckpasswd -s"
> }
> access "srinidhi" {
>         users:  "srinidhi"
>         read:   "deeproot.co.in.support"
>         post:   ""
> }

I'm not sure.  post: "" is a somewhat unusual thing to do, and it's
possible that there's a bug in nnrpd in how it's handled, though.  You may
want to try following the advice in readers.conf and just omitting the
post setting entirely if you don't want to give a user post access.
Alternately, you can use !* as the pattern for posting rather than just an
empty pattern.

post: "" should work and deny all posting access -- if it doesn't, it's a
bug.  I've just never seen someone try that before.

-- 
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: security issue
#71889
Author: anandmithil_shah
Date: Sat, 18 Jun 2005 11:12
56 lines
3122 bytes

Russ Allbery wrote:
> anandmithil shah <anandmithil_shah@yahoo.com> writes:
>
> > though anand has no right ot post on deeproot.co.in.support, still he
> > can post the message.how can it possible? help me
>
> > ##anand
> > auth "anand" {
> >         hosts: "*"
> >         auth: "ckpasswd -s"
> > }
> > access "anand" {
> >         users:  "anand"
> >         read:   "deeproot.co.in.support"
> >         post:   ""
> > }
>
> > ##srinidhi
> > auth "srinidhi" {
> >         hosts: "*"
> >         auth: "ckpasswd -s"
> > }
> > access "srinidhi" {
> >         users:  "srinidhi"
> >         read:   "deeproot.co.in.support"
> >         post:   ""
> > }
>
> I'm not sure.  post: "" is a somewhat unusual thing to do, and it's
> possible that there's a bug in nnrpd in how it's handled, though.  You may
> want to try following the advice in readers.conf and just omitting the
> post setting entirely if you don't want to give a user post access.
> Alternately, you can use !* as the pattern for posting rather than just an
> empty pattern.
>
> post: "" should work and deny all posting access -- if it doesn't, it's a
> bug.  I've just never seen someone try that before.
>
> --
> 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
thanks for reply,
as i have tried to eliminate the post:"" entirely, then it's work,but
according to man page of readers.conf , post:"" has to be work.still ok
thanks again for help.if u find any bug in nnrpd handling then post the
message.
bye



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