Thread View: news.software.nntp
11 messages
11 total messages
Started by Russell Virgilio
Thu, 01 Feb 2001 18:00
nnrpd -D
Author: Russell Virgilio
Date: Thu, 01 Feb 2001 18:00
Date: Thu, 01 Feb 2001 18:00
27 lines
1915 bytes
1915 bytes
I am experimenting with the nnrpd -D command and have set up a shell script to start a seperate ssl-enabled daemon on say port 120. Here is what my shell script looks like. #! /usr/bin/ksh INNCONF=/services/server/news/etc-secure/inn-secure.conf export INNCONF /services/server/news/bin/nnrpd -D -S -p 120 When I run this script I get the following error. /services/server/news/bin/nnrpd: can't bind (Permission denied) Do I have to run the script as user root? If so, does this affect any permissions? I am currently running the script as user news. Thanks for any input. -Russ -- *-----------------------------------------------------* ** Russell Virgilio System Support Specialist I ** ** Georgia Tech - 404-894-8092 - russ@gatech.edu ** *-page: 404 336 2071 or 9724002294@pagenetmessage.net-*
Re: nnrpd -D
Author: Russ Allbery
Date: Thu, 01 Feb 2001 18:13
Date: Thu, 01 Feb 2001 18:13
28 lines
2003 bytes
2003 bytes
Russell Virgilio <russ@gatech.edu> writes: > I am experimenting with the nnrpd -D command and have set up a shell > script to start a seperate ssl-enabled daemon on say port 120. Here is > what my shell script looks like. > #! /usr/bin/ksh > INNCONF=/services/server/news/etc-secure/inn-secure.conf > export INNCONF > /services/server/news/bin/nnrpd -D -S -p 120 > When I run this script I get the following error. > /services/server/news/bin/nnrpd: can't bind (Permission denied) > Do I have to run the script as user root? If so, does this affect any > permissions? I am currently running the script as user news. Thanks > for any input. If you need to bind to a port under 1024, you have to run the script as root. Currently, nnrpd will then look at the ownership of pathrun and setuid to that user. (In CURRENT and in 2.4 this will be changed to have nnrpd setuid to the user specified at configure time, as we're working on phasing out that odd dependency on pathrun.) -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: nnrpd -D
Author: Russ Allbery
Date: Thu, 01 Feb 2001 21:43
Date: Thu, 01 Feb 2001 21:43
21 lines
1811 bytes
1811 bytes
Russell Virgilio <russ@gatech.edu> writes: > I can now init nnrpd as a daemon using the previous shell script, I have > just changed the port to 1500. I watch the process ID sleep using > truss, but each attempt at a connection fails quickly. Here is the > truss output. It looks like the child nnrpd is immediately dying. Numerous things could cause this, from missing libraries to a missing configuration file. Are there any log messages? > I basicially have a seperate etc directory > (/services/server/news/etc-secure) with the only modifications being a > new pointer in the loaded inn-secure.conf to the readers-secure.conf > file as the new readers.conf. By putting it as readers.conf in the etc-secure directory? -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: nnrpd -D
Author: Russell Virgilio
Date: Thu, 01 Feb 2001 21:44
Date: Thu, 01 Feb 2001 21:44
72 lines
4386 bytes
4386 bytes
Hey Russ, it's Russ again...
I can now init nnrpd as a daemon using the previous shell script,
I have just changed the port to 1500. I watch the process ID sleep using
truss, but each attempt at a connection fails quickly. Here is the truss
output. I basicially have a seperate etc directory
(/services/server/news/etc-secure) with the only modifications being a new
pointer in the loaded inn-secure.conf to the readers-secure.conf file as the
new readers.conf. Is there something else I am missing? I had to copy the
openssl libraries to /services/server/news/lib because they are not found by
nnrpd in the /usr/local/ssl directory in which they are installed. Is there
a configuration parameter other than in ./configure that points to the
location of the installed openssl libraries? Would simply copying these
libraries over cause nnrpd to pitch a fit? Thanks alot everyone, especially
Russ!
# truss -p 28316
accept(5, 0xFFBEFAA8, 0xFFBEFA14, 1) (sleeping...)
accept(5, 0xFFBEFAA8, 0xFFBEFA14, 1) = 6
fork() = 28536
close(6) = 0
accept(5, 0xFFBEFAA8, 0xFFBEFA14, 1) (sleeping...)
Received signal #18, SIGCLD, in accept() [caught]
siginfo: SIGCLD CLD_KILLED pid=28536 status=0x000D
accept(5, 0xFFBEFAA8, 0xFFBEFA14, 1) Err#91 ERESTART
waitid(P_ALL, 0, 0xFFBEF4B0, WEXITED|WTRAPPED|WNOHANG) = 0
waitid(P_ALL, 0, 0xFFBEF4B0, WEXITED|WTRAPPED|WNOHANG) Err#10 ECHILD
setcontext(0xFFBEF6E0)
accept(5, 0xFFBEFAA8, 0xFFBEFA14, 1) = 6
fork() = 28537
close(6) = 0
accept(5, 0xFFBEFAA8, 0xFFBEFA14, 1) (sleeping...)
#
> Russell Virgilio <russ@gatech.edu> writes:
>
> > I am experimenting with the nnrpd -D command and have set up a shell
> > script to start a seperate ssl-enabled daemon on say port 120. Here is
> > what my shell script looks like.
>
> > #! /usr/bin/ksh
> > INNCONF=/services/server/news/etc-secure/inn-secure.conf
> > export INNCONF
> > /services/server/news/bin/nnrpd -D -S -p 120
>
> > When I run this script I get the following error.
>
> > /services/server/news/bin/nnrpd: can't bind (Permission denied)
>
> > Do I have to run the script as user root? If so, does this affect any
> > permissions? I am currently running the script as user news. Thanks
> > for any input.
>
> If you need to bind to a port under 1024, you have to run the script as
> root. Currently, nnrpd will then look at the ownership of pathrun and
> setuid to that user. (In CURRENT and in 2.4 this will be changed to have
> nnrpd setuid to the user specified at configure time, as we're working on
> phasing out that odd dependency on pathrun.)
>
> --
> Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
--
*-----------------------------------------------------*
** Russell Virgilio System Support Specialist I **
** Georgia Tech - 404-894-8092 - russ@gatech.edu **
*-page: 404 336 2071 or 9724002294@pagenetmessage.net-*
Re: nnrpd -D
Author: Charlie Conax
Date: Thu, 01 Feb 2001 21:56
Date: Thu, 01 Feb 2001 21:56
14 lines
1911 bytes
1911 bytes
:: I can now init nnrpd as a daemon using the previous shell script, :: I have just changed the port to 1500. I watch the process ID sleep using :: truss, but each attempt at a connection fails quickly. Here is the truss What does news.err show you? Can you invoke this nnrpd from the commandline? If not, what do you see when attempting tls handshaking on port 1500, if you get that far? If news.err shows no errors, do you see anything unusual in news.notice? I have minimal patches to log each step in the TLS negotiation that I added when trying to track down a report that certain browsers were unable to communicate with snews://193.162.153.117/ while others have worked flawlessly, but I don't know how much they'd help
Re: nnrpd -D
Author: Russell Virgilio
Date: Fri, 02 Feb 2001 16:01
Date: Fri, 02 Feb 2001 16:01
75 lines
4884 bytes
4884 bytes
There are no log entries indicating any ssl activity. There are no log entries that even indicate I tried to connect. Here is my configuration and script to invoke nnrpd from the commandline. The only problem I ran into was the location of libssl.o.0 When I first ran nnrpd from the command line I got an error stating can not find libssl.o.0 which is weird because I compiled inn with the command line --with-ssl=/usr/local/ssl. I had to put a symlink in the /services/server/news directory, which now looks like below. That took care of the can't find libssl.o.0 error. My configuration has a /services/server/news/etc-secure directory with a inn.conf file setting the pathetc to /services/server/news/etc-secure. I can watch readers connect via truss, like I stated before, but nothting seems to happen after that. I have not looked at the tls handshaking because I dont' know how, but if that will really help I can find out how and take care of that. Does anyone have any ideas? Thanks-Russ lrwxrwxrwx 1 news 30 Feb 1 11:32 libcrypto.a -> /usr/local/ssl/lib/libcrypto.a lrwxrwxrwx 1 news 31 Feb 1 11:32 libcrypto.so -> /usr/local/ssl/lib/libcrypto.so lrwxrwxrwx 1 news 33 Feb 1 11:31 libcrypto.so.0 -> /usr/local/ssl/lib/libcrypto.so.0 lrwxrwxrwx 1 news 37 Feb 1 11:31 libcrypto.so.0.9.6 -> /usr/local/ssl/lib/libcrypto.so.0.9.6 -rw-r--r-- 1 news 945676 Jan 26 16:15 libinn.a -r-xr-xr-x 1 news 647 Jan 26 16:15 libinn.la lrwxrwxrwx 1 other 15 Jan 26 16:21 libinn.so -> libinn.so.2.0.0 lrwxrwxrwx 1 other 15 Jan 26 16:21 libinn.so.2 -> libinn.so.2.0.0 -r-xr-xr-x 1 news 898736 Jan 26 16:15 libinn.so.2.0.0 lrwxrwxrwx 1 news 27 Feb 1 11:31 libssl.a -> /usr/local/ssl/lib/libssl.a lrwxrwxrwx 1 news 28 Feb 1 11:31 libssl.so -> /usr/local/ssl/lib/libssl.so lrwxrwxrwx 1 news 30 Feb 1 11:30 libssl.so.0 -> /usr/local/ssl/lib/libssl.so.0 lrwxrwxrwx 1 news 34 Feb 1 11:31 libssl.so.0.9.6 -> /usr/local/ssl/lib/libssl.so.0.9.6 -rw-r--r-- 1 news 645240 Jan 26 16:16 libstorage.a -r-xr-xr-x 1 news 671 Jan 26 16:16 libstorage.la lrwxrwxrwx 1 other 19 Jan 26 16:22 libstorage.so -> libstorage.so.2.0.0 lrwxrwxrwx 1 other 19 Jan 26 16:22 libstorage.so.2 -> libstorage.so.2.0.0 -r-xr-xr-x 1 news 611316 Jan 26 16:16 libstorage.so.2.0.0 Here is the script to start secure-news. #! /usr/bin/ksh INNCONF=/services/server/news/etc-secure/inn.conf export INNCONF /services/server/news/bin/nnrpd -D -S -p 1500 > :: I can now init nnrpd as a daemon using the previous shell script, > :: I have just changed the port to 1500. I watch the process ID sleep using > :: truss, but each attempt at a connection fails quickly. Here is the truss > > What does news.err show you? Can you invoke this nnrpd from the > commandline? If not, what do you see when attempting tls handshaking > on port 1500, if you get that far? If news.err shows no errors, do > you see anything unusual in news.notice? > > I have minimal patches to log each step in the TLS negotiation that I > added when trying to track down a report that certain browsers were > unable to communicate with snews://193.162.153.117/ while others have > worked flawlessly, but I don't know how much they'd help -- *-----------------------------------------------------* ** Russell Virgilio System Support Specialist I ** ** Georgia Tech - 404-894-8092 - russ@gatech.edu ** *-page: 404 336 2071 or 9724002294@pagenetmessage.net-*
Re: nnrpd -D
Author: Russ Allbery
Date: Fri, 02 Feb 2001 21:04
Date: Fri, 02 Feb 2001 21:04
11 lines
1507 bytes
1507 bytes
Russell Virgilio <russ@gatech.edu> writes: > I can watch readers connect via truss, like I stated before, but > nothting seems to happen after that. The system call trace you posted earlier didn't include child processes. Do you see anything more informative if you use truss -f? -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: nnrpd -D
Author: Russell Virgilio
Date: Mon, 05 Feb 2001 16:02
Date: Mon, 05 Feb 2001 16:02
55 lines
3293 bytes
3293 bytes
I have figured out what the problem was, it was the test machine. For some reason I can not get netscape 4.7x under linux to read the newsgroups with ssl. It seems to stall after the initial tls handshaking. Here is what I have deduced from testing various clients. I'm having some "behaviour" questions on the SSL enabled NNTP. In Netscape, it seems to be making the connection, then the server is asking me to authenticate (possibly) via certificates. The certificate request comes from the server, so how do I avoid the cert request? (This is strictly a "ease of user use" question) I'm assuming the following: > tls_ca_path: /services/server/news/certs This is the path to the certificates within the chain of the issued certificate to the news server with hashes (c_rehash) to the different PEMs. > tls_cert_file: /services/server/news/certs/news-cert.pem This is the file containing the public key. > tls_key_file: /services/server/news/certs/news-cert.pem This is the file containing the decrypted private key. > tls_ca_file: /services/server/news/certs/GTPilotP2-ma.pem This is the file of the immediate issuer? What's the benefit/difference of tls_ca_path and tls_ca_file? How can I get rid of the client cert request when using Netscape? (Outlook express doesn't do this...odd). > Russell Virgilio <russ@gatech.edu> writes: > > > I can watch readers connect via truss, like I stated before, but > > nothting seems to happen after that. > > The system call trace you posted earlier didn't include child processes. > Do you see anything more informative if you use truss -f? > > -- > Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/> -- *-----------------------------------------------------* ** Russell Virgilio System Support Specialist I ** ** Georgia Tech - 404-894-8092 - russ@gatech.edu ** *-page: 404 336 2071 or 9724002294@pagenetmessage.net-*
Re: nnrpd -D
Author: Charlie Crypted
Date: Mon, 05 Feb 2001 16:24
Date: Mon, 05 Feb 2001 16:24
8 lines
1595 bytes
1595 bytes
:: reason I can not get netscape 4.7x under linux to read the newsgroups with :: ssl. It seems to stall after the initial tls handshaking. Here is what I Can you get it to work with our open INN swerver? snews://193.162.153.117/news.software.nntp ? I have heard that others have had no complaints using netscrape with it, so you can use that as reference if it works for you.
Re: nnrpd -D
Author: Russell Virgilio
Date: Mon, 05 Feb 2001 17:32
Date: Mon, 05 Feb 2001 17:32
25 lines
2294 bytes
2294 bytes
Charlie-
I had no problem connecting to your site. What software are you using? If
you are using INN 2.3.1 could you enlighten me to how you have INN setup, ie the
inn.conf, readers.conf, and sasl.conf files. I have no problems with the
unsecure server.
-Russell
]: reason I can not get netscape 4.7x under linux to read the newsgroups with
> :: ssl. It seems to stall after the initial tls handshaking. Here is what I
>
> Can you get it to work with our open INN swerver?
> snews://193.162.153.117/news.software.nntp ?
> I have heard that others have had no complaints using netscrape
> with it, so you can use that as reference if it works for you.
--
*-----------------------------------------------------*
** Russell Virgilio System Support Specialist I **
** Georgia Tech - 404-894-8092 - russ@gatech.edu **
*-page: 404 336 2071 or 9724002294@pagenetmessage.net-*
nnrpd -D - attn: charlie
Author: Russell Virgilio
Date: Mon, 12 Feb 2001 17:49
Date: Mon, 12 Feb 2001 17:49
26 lines
2529 bytes
2529 bytes
Charlie-
Did you do anything out of the ordinary with your inn-ssl
configuration? I can get all netscape for windows to work, and outlook for
windows. I can get lynx with ssl to read secure news, but I can't get netscape
under linux to work. Those patches you mentioned may be of help to me, I would
appreciate it if you could forward them my way. I will copy you some truss logs
if you feel they can be of help. Thanks for everything Charlie...
-Russ
> :: reason I can not get netscape 4.7x under linux to read the newsgroups with
> :: ssl. It seems to stall after the initial tls handshaking. Here is what I
>
> Can you get it to work with our open INN swerver?
> snews://193.162.153.117/news.software.nntp ?
> I have heard that others have had no complaints using netscrape
> with it, so you can use that as reference if it works for you.
--
*-----------------------------------------------------*
** Russell Virgilio System Support Specialist I **
** Georgia Tech - 404-894-8092 - russ@gatech.edu **
*-page: 404 336 2071 or 9724002294@pagenetmessage.net-*
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