Article View: news.software.readers
Article #5536How best to configure Tin
From: Tom J Parry
Date: Thu, 26 Aug 1993 08:34
Date: Thu, 26 Aug 1993 08:34
77 lines
4509 bytes
4509 bytes
I've been installing/maintaining/patching tin for quite a while now but my installations have been almost exclusively in situations where news is read by nntp and personal indexes are stored (in other words, the administrators aren't interested in installing/maintaining it so it lives in my directory and those interested run it!) But now, I have been approaced to install it on another system. There are two machines involved. One is the newsserver itself (although not for long - a new mahcine running INN is coming - bye bye indexes). Anyway, I want to use central indexes, say in /usr/local/lib/news (at the moment we don't feel like playing with the server since it's about to be completely replaced). Here are my alternatives: o Use local indexes: NOPE! o Use central indexes with world writable directory and patch tin to make indexes mode 777 (I have done this on another site using /tmp for the indexes). Advantages: Only used groups get indexed Disadvantages: Need a world writable directory. May not be politically possible and /tmp is probably not suitable either. o Same as above but also run tind. Advantages: Some newsgroup indexes may be up to date. Disadvantages: All newsgroups get indexed (2800 of them!), Indexes only fully valid when tind runs. Advantages: If users use a group, index is up to date for next person. o Run tin setuid. MAJOR PROBLEM: It doesn't work properly. The main problem here is that once you run something setuid, you can always get back your original id's. Under Pyramid BSD (The OS in question), the only valid setreuid call is to set your effective id equal to real id - nothing else is allowed - you can't go back. Using setuid you can do more. So what is the problem... Any user can shell out of tin and run a 2 line program (setreuid, sh) to become user 'news' (or whatever it runs at). this also applies when piping articles and could probably be hacked easily for uudecode, shar etc too. So we might as well make the directory world writable again. Possible solution is to set the effective id back to the real id and lose the effective id when you want to do anything as the real user. Problem is, that if you want to be able to subsequently write indexes, then this id stuff will have to happen in a forked process and I don't feel like forking a 3 meg process every time I save and uudecode an article (or anything else for that matter). o Run tin setgid: Same problems as setuid. o Hack tind so it only indexes useful groups and run tin not setuid. Therefore, every time a user enters a group, all new articles since last tind invocation need to be indexed (and then lost when the group is left). The hack to tind might have to involve tin outputing the names of all groups used to a central file which we can sort and uniq and fake an active or newsrc from before running tind (or tin -u) as setuid news. Whatever way we do it, there is a problem. Ideally, a way to run tin setuid without the easy security holes would be nice but I can't see it. NOTE: The following solutions are not worthwhile right now: o Run INN (it's coming soon, we need something in the interim) o Patch the NNTP server with Iain's index patches (INN is coming soon) o Use personal indexes - well, we could but it's such a waste Any opinions? I am sure people out there are running systems where central indexes are used on a machine running NNTP to a non-patched, non-INN server. Or do you just live with the security hole - or do you not consider it a security hole if the setuid user has no access other than the index directory? -- Tom J Parry. Your reality is a figment of my imagination.
Technical Details
Message-ID:
<1993Aug26.083448.22953@monu6.cc.monash.edu.au>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!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parryShow Full Headers
Complete Article Headers
Message-ID: <1993Aug26.083448.22953@monu6.cc.monash.edu.au> Subject: How best to configure Tin Date: Thu, 26 Aug 1993 08:34:48 GMT From: parry@yoyo.cc.monash.edu.au (Tom J Parry) 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!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parry Newsgroups: news.software.readers Originator: parry@yoyo.cc.monash.edu.au Lines: 80 Sender: news@monu6.cc.monash.edu.au (Usenet system) Organization: Monash University, Melb., Australia.