Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2026 07:50:24 +0000
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f56d737051b2 - main - news/inn{-current}: Run nnrpd rc.d as news user
Message-ID:  <6a0d67c0.3df0d.38c906c4@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by kbowling:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f56d737051b2c0c3104a6a71cc1a3eec560c28c3

commit f56d737051b2c0c3104a6a71cc1a3eec560c28c3
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2026-05-20 07:48:15 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-05-20 07:50:17 +0000

    news/inn{-current}: Run nnrpd rc.d as news user
    
    nnrpd supports priv drop internal, but it also supports innbind
    escalation.  Since the docs show 'su news', prefer the innbind path when
    we need a privileged port number.
---
 news/inn/files/nnrpd.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/news/inn/files/nnrpd.in b/news/inn/files/nnrpd.in
index 8ad3caaa403f..e9e918df4a39 100644
--- a/news/inn/files/nnrpd.in
+++ b/news/inn/files/nnrpd.in
@@ -16,6 +16,7 @@ rcvar=nnrpd_enable
 load_rc_config ${name}
 
 : ${nnrpd_enable:="NO"}
+: ${nnrpd_user:="news"}
 : ${nnrpd_port:="563"}
 : ${nnrpd_flags:="-D -p ${nnrpd_port} -S"}
 
@@ -29,6 +30,7 @@ else
 	pidfile="%%RUNDIR%%/${name}-${nnrpd_port}.pid"
 fi
 command="%%NEWSBASE%%/bin/${name}"
+command_user="${nnrpd_user}"
 
 stop_postcmd="rm -f ${pidfile}"
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a0d67c0.3df0d.38c906c4>