🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #28327

Re: Safe to make nnrpd setuid root?

#28327
From: Gary Mills
Date: Sat, 23 May 1998 00:00
20 lines
1297 bytes
In <6k5uqr$4ru$1@vulcan.alphanet.ch> Marc SCHAEFER <schaefer@alphanet.ch> writes:

>Gary Mills <mills@cc.umanitoba.ca> wrote:
>> nnrpd will need to run as root while it obtains the passwd entry.

>no, it doesn't need to:

>It just needs, in that case, to have read access to the shadow file,
>and thus it justs need to be sgid shadow.

Sorry, I should have provided more information.  We are using NIS
with a secure map for passwords.  So, it needs to do RPC from a
reserved UDP port.  I've gotten this working by using seteuid(0)
before the NIS lookup and seteuid(getuid()) immediately afterwards.

-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-

Technical Details
Message-ID: <6k6mfk$1jo$1@canopus.cc.umanitoba.ca>
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!not-for-mail
References: <6k088i$kl$1@canopus.cc.umanitoba.ca> <6k5uqr$4ru$1@vulcan.alphanet.ch>

Show Full Headers
Complete Article Headers
Message-ID: <6k6mfk$1jo$1@canopus.cc.umanitoba.ca>
Subject: Re: Safe to make nnrpd setuid root?
Date: Sat, 23 May 1998 00:00:00 +0000
From: mills@cc.umanitoba.ca (Gary Mills)
References: <6k088i$kl$1@canopus.cc.umanitoba.ca> <6k5uqr$4ru$1@vulcan.alphanet.ch>
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!not-for-mail
X-Deja-AN: 355839245
Organization: The University of Manitoba
Newsgroups: news.software.nntp