🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50342

Re: nnrpd -D

#50342
From: Russ Allbery
Date: Thu, 01 Feb 2001 18:13
28 lines
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/>
Technical Details
Message-ID: <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!supernews.com!news.tele.dk!171.64.14.106!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <3A79A429.1D30A110@gatech.edu>

Show Full Headers
Complete Article Headers
Message-ID: <ylae86z2z2.fsf@windlord.stanford.edu>
Subject: Re: nnrpd -D
Date: Thu, 01 Feb 2001 18:13:05 +0000
From: Russ Allbery <rra@stanford.edu>
References: <3A79A429.1D30A110@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!supernews.com!news.tele.dk!171.64.14.106!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 27
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 981051185 28797 171.64.13.23 (1 Feb 2001 18:13:05 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)