🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by G.D.Pratt Tue, 27 Apr 1993 12:30
TIN: an alternative configuration
#3983
Author: G.D.Pratt
Date: Tue, 27 Apr 1993 12:30
114 lines
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!!"
Re: TIN: an alternative configuration
#3988
Author: Jason 'Think!' Steiner
Date: Tue, 27 Apr 1993 15:00
31 lines
2040 bytes
G.D.Pratt (gerry@keele.ac.uk) writes:

> 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.

[much stuff deleted]

> I think this configuration should become a supported one if 
> possible in tin 2.xx in Iain Lea considers it a good idea. 

this is how i always thought tin should be run, so i'd -love- to
see it become supported. fetching news with NNTP and using local,
shared index files seems logical. support for that and part d) in 
2.xx would make my day.

jason

--
`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
`,`                Don't blame me. I voted Libertarian.                 `,`
`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,` steiner@jupiter.cse.utoledo.edu `,`,`,`
Re: TIN: an alternative configuration
#4015
Author: Colin Macleod
Date: Wed, 28 Apr 1993 21:13
49 lines
3276 bytes
G.D.Pratt (gerry@keele.ac.uk) wrote:

` 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.

Maybe I'm missing something vital, but I don't understand why you need
to modify Tin for this.  As far as I can see I'm getting exactly the
behaviour described with an unmodified copy of tin 1.1PL9.

We also use nntp to read from a central server running INN1.3, which doesn't
support the special tin nntp extensions.  Tin is installed setuid-to-news
to use shared index files.  I had to set SPOOLDIR in the Makefile to a
suitable directory under which to create the shared .index dir, which
is writable by user news and group news, not by others.  Compilation flags
added are
  -DNNTP_ONLY -DNNTP_INEWS -DNNTP_SERVER_FILE=\"/mcs/share/etc/nnpserver\"

(What's STRIP2 for in the Makefile? I set it to /bin/true)

I also have a nightly cron job (not run by root or news) which does the
following:

           /mcs/sun4/bin/tin -f /tmp/tin.groups -u
           rm -f /tmp/tin.groups

- removing the dummy groups (.newsrc) file forces it to be recreated
on each run so that all groups get indexed, otherwise new ones don't
get added.

The one real problem we've had was when some of the students discovered
they could set their NNTPSERVER env. var. and connect to other servers
which offered more groups than our local one does.  Tin wrote indexes
for the alternate server on top of those for the local server, leaving
them unusable.  I've reported this to Iain Lea, who says it will be
fixed in future.  Those of our users who are sophisticated enough to
try this in the first place now understand the problem, and know that
they must specify a different index dir. also if they do this.

______________________________________________________________________________
Colin Macleod, Technical Officer,                      Phone: 0382-23181 x4839
Dundee University Maths & Computer Science Dept.
23 Perth Road, Dundee DD1 4HN, Scotland.     E-Mail: cmacleod@mcs.dundee.ac.uk
Re: TIN: an alternative configuration
#4060
Author: Michael Brouwer
Date: Sun, 02 May 1993 11:35
25 lines
2081 bytes
In article <1rj920$7p2@gabriel.keele.ac.uk> gerry@keele.ac.uk (G.D.Pratt)  
writes:
> 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.

> I think this configuration should become a supported one if possible in tin 
> 2.xx in Iain Lea considers it a good idea. 

This looks alot like the configuration i've been running ever since tass had  
the ability to genarate indexes.  Ian brok some stuff in tin.h with the first  
release of tin which was never fixed, which made it neccesary to patch every  
new release in tin (long live rcsmerge).  I have to blame myself for never  
submitting my diffs to Ian though.

There is a slight difference between my setup and the one mentioned i the  
original posting.  Due to lak of diskspace on the client side, our index  
updating script (which runs every half hour) updates only the groups that have  
been read at least once by someone.  Of the 3000 newsgroups we get, only  
300-400 are every read, so the index database stay nice and small.

I don't think I will keep using this setup at our site, since our nntpserver is  
now running inn (with xover) and tin will soon have support for xover.

Michael
Re: TIN: an alternative configuration
#4088
Author: Naseer Khan
Date: Tue, 04 May 1993 17:07
26 lines
2061 bytes
G.D.Pratt (gerry@keele.ac.uk) wrote:

:"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:-

A while ago, Iain had said that one of the main goals for tind was to
index group much faster than regular tin.  But I found that it was not a
drop in replacement to tin.  As far as I see it, the config described is
THE only one of that type possible.  You couldn't BOTHER with tind even
if you wanted to, could you?  In a time when efficiency is the panacea
(it seems), it would have been nice to run tind for the updates but I
haven't gotten it to work.  Complains about active file missing or in
wrong format or some such thing.  (I gave up a long while ago and now use
the set-up described in Gerry's article.)

--
                  _/      _/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/_/
 |      |        _/_/    _/ _/    _/ _/       _/       _/       _/      _/ 
 | (~)(o)       _/  _/  _/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/_/
C      _)      _/    _/_/ _/    _/       _/ _/       _/       _/  _/_/
 | ,___|      _/      _/ _/    _/ _/_/_/_/ _/_/_/_/ _/_/_/_/ _/     _/_/
                                
Re: TIN: an alternative configuration
#4120
Author: Colin Macleod
Date: Sat, 08 May 1993 14:13
29 lines
2214 bytes
Previously I wrote:

` Maybe I'm missing something vital, but I don't understand why you need
` to modify Tin for this.  As far as I can see I'm getting exactly the
` behaviour described with an unmodified copy of tin 1.1PL9.

` We also use nntp to read from a central server running INN1.3, which doesn't
` support the special tin nntp extensions.  Tin is installed setuid-to-news
` to use shared index files.  I had to set SPOOLDIR in the Makefile to a
` suitable directory under which to create the shared .index dir, which
` is writable by user news and group news, not by others. 
  ...etc...

E-mail from Gerry Pratt (gerry@keele.ac.uk) has made me realise that
this depends on a feature of tin which may not be obvious.

The man page says:
     A slightly better method is to set tin setuid news and  have
     all  index  files  created  and  updated  in  the news spool
     directory  (i.e.  /usr/spool/news/.index).

This doesn't actually depend on having news stored locally, and
setting SPOOLDIR in the Makefile determines the location used
for the shared .index directory also.

______________________________________________________________________________
Colin Macleod, Technical Officer,                      Phone: 0382-23181 x4839
Dundee University Maths & Computer Science Dept.
23 Perth Road, Dundee DD1 4HN, Scotland.     E-Mail: cmacleod@mcs.dundee.ac.uk
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