🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50353

Re: nnrpd -D

#50353
From: Russell Virgilio
Date: Thu, 01 Feb 2001 21:44
72 lines
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-*



Technical Details
Message-ID: <3A79D8B0.701F9842@gatech.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.skycache.com!Cidera!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.mindspring.net!cc.gatech.edu!GT-News!not-for-mail
References: <3A79A429.1D30A110@gatech.edu> <ylae86z2z2.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <3A79D8B0.701F9842@gatech.edu>
Subject: Re: nnrpd -D
Date: Thu, 01 Feb 2001 16:44:16 -0500
From: Russell Virgilio <russ@gatech.edu>
References: <3A79A429.1D30A110@gatech.edu> <ylae86z2z2.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.skycache.com!Cidera!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.mindspring.net!cc.gatech.edu!GT-News!not-for-mail
Newsgroups: news.software.nntp
Organization: Georgia Institute of Technology, Atlanta GA, USA
Lines: 71
Reply-To: russ@gatech.edu
NNTP-Posting-Host: russv@dedalus.ns.gatech.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news-int.gatech.edu 981060510 1721 128.61.2.38 (1 Feb 2001 20:48:30 GMT)
X-Complaints-To: usenet@news.gatech.edu
NNTP-Posting-Date: 1 Feb 2001 20:48:30 GMT
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en