Article View: news.software.readers
Article #3983TIN: an alternative configuration
From: G.D.Pratt
Date: Tue, 27 Apr 1993 12:30
Date: Tue, 27 Apr 1993 12:30
114 lines
5986 bytes
5986 bytes
I spoke to Iain Lea a month or so ago about the tin configuration we run
here at Keele University Computer Centre. Iain asked me to post this
information to the news.software.readers group.
+------------+ +------------+
|SEQUENT MAIN| | |
|COMPUTER | | |
| | |NETWORK NEWS|
|SETGID tin |<---- NNTP ----->| SERVER |
| ^ | | |
| | | |INN 1.3 but |
| v | |1.4 inews |
|Shared index| |on Sun4 with|
| ^ | |SunOS 4.1.3 |
| | | | |
|4am CRONJOB | | |
+------------+ +------------+
Basically I have modified (hacked really) tin-1.1pl6 to
a) read and write shared indexes on the same machine as news reading
takes place - ie the main multiprocessor CC Sequent Symmetry.
b) force use of NNTP to a "standard" (ie unpatched/unhacked) NNTP
news server Sun 4 running INN 1.3 with some 1.4 mods.
c) run a 4 am CRONJOB to update all the shared index files on
the main Sequent.
d) run gid news safely so that all users can update shared indexes.
I made an halfhearted effort of apply these mods to tin-1.1pl7 and tin-1.1pl8
but stayed with tin-1.1pl6 since it works OK. Also got tin-1.1pl9 unhacked.
Somebody said that an alias or shellscript wrapper solution would work as
well - I don't doubt this but I wanted to bolt the changes all into the tin
binary so I knew _exactly_ what it was doing and prevent mischeif on the
main machine since Usenet users often = hackers. Also wanted to avoid
having a 777 world-writable index directory.
A cronjob runs:-
/usr/local/lib/news/tin/tin_update
at 4am every night and runs for about 2 to 3 hours updating the indexes
while we sleep. I didn't bother with tind cause this is not time critical:-
#! /usr/att/bin/sh
/bin/sh -c '( /usr/local/bin/tin -v -u -f /usr/local/lib/news/tin/index_control < /dev/null 2>&1 ) | /usr/ucb/tail -1 | /usr/ucb/mail -s "News tin index update `date`" news'
The indexes live in:-
/usr/local/lib/news/tin/index/
which is news group writable:-
drwxrwxr-x 2 news news 34304 Apr 27 12:20 ./
and are owned by whoever updated the index last but all are readable by
group 'news':-
ls -lgt | head
total 11862
-rw-r--r-- 1 maa16 news 18589 Apr 27 12:05 786.3
-rw-r--r-- 1 gga37 news 5844 Apr 27 11:27 1216.1
-rw-r--r-- 1 cla02 news 754 Apr 27 11:07 466.3
-rw-r--r-- 1 gerry news 10093 Apr 27 10:54 198.1
-rw-r--r-- 1 cla02 news 23396 Apr 27 10:51 219.3
-rw-r--r-- 1 u0g78 news 18424 Apr 27 10:48 1214.1
-rw-r--r-- 1 u0g78 news 26215 Apr 27 10:48 377.1
-rw-r--r-- 1 u0g78 news 51451 Apr 27 10:48 1394.1
-rw-r--r-- 1 u0g78 news 43445 Apr 27 10:48 533.2
tin runs setgid news:-
-rwxr-sr-x 2 root news 266240 Nov 18 14:50 /usr/local/bin/tin*
and I put a setgid trap in, suggested by Jonathan Knight here, to prevent
folk shelling out as euid news:-
setgid(getgid());
system (p);
When we come in the morning all the indexes are bang up to date. As news
arrives during the day the popular groups get updated as users read them
and the ones that are not being read get out of date - but who cares or knows.
We have been running this setup since Nov 18th '92 and have only experienced
minor problems. One is occasionally "432" errors "Article not available"
(very few of these now) and the "Is Network News working?" question when
new users post articles and don't see them immediately - we tell them to
do "Yank" ie "Shift-y" but ideally tin would realise that the putner
had done a posting and do a re-sych. The problem here at a University is
that we have a shifting population of users so telling users something
once is definitely not an option.
Two other advantages of this are:-
a) it is talking to a standard NNTP setup, which is a "thin interface"
and many sites now appear to have no control over the NNTP server -
ie they beg the connection off someone else.
b) it avoid any NFS mounts which we see as an increasing problem
- NNTP does not hang. If the server machine is not providing
a service at 4.00 am the CRONJOB just stops with a "server not
responding" email message. This has happen a couple of times and
causes no real problem.
I think this configuration should become a supported one if possible in tin
2.xx in Iain Lea considers it a good idea.
gerry
--
gerry pratt - workstation support programmer - university of keele - ENGLAND
email: gerry@seq1.keele.ac.uk ( DYNIX? - just say no!! ) tel:UK 0782 583072
"these opinions are mine, mine, Mine, Mine, MINE......ALL MINE I TELL YOU!!"
Technical Details
Message-ID:
<1rj920$7p2@gabriel.keele.ac.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!wupost!uunet!pipex!uknet!keele!seq1!gerryShow Full Headers
Complete Article Headers
Message-ID: <1rj920$7p2@gabriel.keele.ac.uk> Subject: TIN: an alternative configuration Date: Tue, 27 Apr 1993 12:30:56 +0000 From: gerry@keele.ac.uk (G.D.Pratt) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!wupost!uunet!pipex!uknet!keele!seq1!gerry Newsgroups: news.software.readers Lines: 114 Distribution: world NNTP-Posting-Host: seq1.cc.keele.ac.uk X-Newsreader: TIN [version 1.1 PL6]