🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Tom J Parry Sun, 31 May 1992 14:20
Tin 1.1 PL3 With non-local indexes
#1659
Author: Tom J Parry
Date: Sun, 31 May 1992 14:20
37 lines
2535 bytes
I am having trouble getting tin to use common index files. I see from
the source that it compares real and effective uid's and if they are
different then it assumes index files are in /usr/spool/news/.index

Tin is therefore installed as setuid news. It now does not create .index
files in each user's directory. Unfortunately it doesn't do much else
either. 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!

Have I installed things incorrectly. We currently have tind running 6
hourly and tin running without setuid so everybody has .index files.
I've been running the setuid version in my own directory so not to give
away access to the screaming hoardes.

Our news is NOT read via NNTP, we mount a common news spool heirarchy
(and then do a few things to add some local groups and fake active
files). The README files for Tin don't seem to give much help. There is
lots of help if you want to read .indexes from NNTP and any other help
you would want (except the one thing we need!)

Anyone had similar problems, Know what's wrong, know a solution?

Thanks in advance

-- 
Tom J Parry.
Your reality is a figment of my imagination.
Re: Tin 1.1 PL3 With non-local indexes
#1664
Author: Ralph Ballier
Date: Mon, 01 Jun 1992 21:15
25 lines
1813 bytes
parry@yoyo.cc.monash.edu.au (Tom J Parry) writes:
: I am having trouble getting tin to use common index files. I see from
: the source that it compares real and effective uid's and if they are
: different then it assumes index files are in /usr/spool/news/.index
: 
[....]
: Have I installed things incorrectly. We currently have tind running 6
: hourly and tin running without setuid so everybody has .index files.

This is not necessary; we are using the following alias for tin 
(without setuid): 

alias tin "tin -nz -I /usr/spool/news/.index"

The only problem is if news arrives and we use tin before
tind was active; then we get (rarely) the message "Cannot open file ..."
I think this happens because tin attemps to rebuild the index file.

	Ralph
-- 
      Lise-Meitner-Schule (Oberstufenzentrum Chemie, Physik und Biologie)
                                 Ralph Ballier
          Rudower Strasse 184, D-1000 Berlin 47     Tel.: 030/6611011
 EMail: Ballier@blnosz.BR.Schule.DE   Initiative "Offenes Deutsches Schul-Netz"
Re: Tin 1.1 PL3 With non-local indexes
#1665
Author: 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 
Re: Tin 1.1 PL3 With non-local indexes
#1667
Author: Tom J Parry
Date: Tue, 02 Jun 1992 05:05
28 lines
2026 bytes
ballier@blnosz.BR.Schule.DE (Ralph Ballier) writes:
: parry@yoyo.cc.monash.edu.au (Tom J Parry) writes:
: : I am having trouble getting tin to use common index files. I see from
: : the source that it compares real and effective uid's and if they are
: : different then it assumes index files are in /usr/spool/news/.index
: : 
: [....]
: : Have I installed things incorrectly. We currently have tind running 6
: : hourly and tin running without setuid so everybody has .index files.
: 
: This is not necessary; we are using the following alias for tin 
: (without setuid): 
: 
: alias tin "tin -nz -I /usr/spool/news/.index"
: 
: The only problem is if news arrives and we use tin before
: tind was active; then we get (rarely) the message "Cannot open file ..."
: I think this happens because tin attemps to rebuild the index file.

That's the reason I want to run it suid news. To allow tin to manipulate
the index files. Unfortunately it seems to play with the index files
under my uid and it deals with my files (and shell escapes!) as news
uid.

-- 
Tom J Parry.
Your reality is a figment of my imagination.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads