🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #1665

Re: Tin 1.1 PL3 With non-local indexes

#1665
From: Bruce Momjian
Date: Mon, 01 Jun 1992 21:56
31 lines
2143 bytes
parry@yoyo.cc.monash.edu.au (Tom J Parry) writes:
: If I do a shell escape and run id I get my uid and news as the
: effective id. I can, (via shell escapes) do anything I like as news,
: including removing/creating files in /usr/spool/news/whatever (BAD
: THING!). I am unable to access my files at all.
: 
: The soruce seems to switch real and effective id's whenever necessary. I
: presume it should be me when doing anything except reading/writing
: .index files. However, it seems to be the other way around. It reads my
: .newsrc file (o+r access) but can't write it. I therefor assumed it
: would write to /usr/spool/news/.index but it doesn't. The real/effective
: id's seem switched!
: 
: 
: Anyone had similar problems, Know what's wrong, know a solution?
: 

I have posted a bug report and fix to Ian already and assume patches are
in the works.  Basically, I had the same problem.  The routines
read_kill_file() and write_kill_file() set the effective uid to 'real'
on function entry and to 'tin' on function exit.  From then on, you run
as news, and shell escapes and postings run as news too!  

My solution was to remove the set_tin_uid_gid() calls at the exit points
of read_kill_file() and write_kill_file(), and it has worked well since.
 I also do not use NNTP.

-- 
Bruce Momjian                      |  830 Blythe Avenue
root%candle.uucp@elite.com         |  Drexel Hill, Pennsylvania 19026 
Technical Details
Message-ID: <1992Jun1.215625.11181@candle.uucp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sources.d.mbox.zip!sparky!uunet!dtix!darwin.sura.net!udel!gvls1!jabber!candle!root
References: <1992May31.142049.27063@monu6.cc.monash.edu.au>

Show Full Headers
Complete Article Headers
Message-ID: <1992Jun1.215625.11181@candle.uucp>
Subject: Re: Tin 1.1 PL3 With non-local indexes
Date: Mon, 01 Jun 1992 21:56:25 +0000
From: root@candle.uucp (Bruce Momjian)
References: <1992May31.142049.27063@monu6.cc.monash.edu.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sources.d.mbox.zip!sparky!uunet!dtix!darwin.sura.net!udel!gvls1!jabber!candle!root
Newsgroups: news.software.readers,alt.sources.d,comp.sources.d
Organization: a consultant's basement
Lines: 30
X-Newsreader: Tin 1.1 PL3