🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #3066

Re: Tin and setuid (was xxxxxxx)

#3066
From: Iain.Lea
Date: Wed, 13 Jan 1993 07:28
61 lines
3436 bytes
Wim van Dorst (tgcpwd@rw9.urc.tue.nl) wrote:
:
: Kent C. Brodie writes:
: >1) If I run tin as setuid-tin, then is having tind doing anything for me?

The best posted answer/description that I have read so far was posted
by Sergio Aponte in article <1993Jan11.221506.12473@pony.Ingres.COM>.

: As far as I understand it (but I'm not official in this) you have three
: ways to set things up:
:   
:   [Tin not setuid, no tind] For people who have no privs on their system, 
:   this is the way to go. Indexing is then done in the $HOME directory of
:   the user that uses tin. There is an option to make tin do indexing in
:   the back ground while reading news. If you don't use that option it'll
:   index each group just before you read the news in it (taking time for it).

Correct. 'Tin -U' is the option to start indexing in the background while
one reads news in the foreground.

:   [tin not setuid, tind] For system administrators who feel anxious to give
:   away news privileges (chmod +s news), but still are keen on disk usage, 
:   this tind (of course setuid) does the indexing during off-hours, while
         ^^^^^^^^^^^^^^^^^^^^^^^ 
tind does not have to run setuid.
            
:   [tin setuid, no tind] Since tin itself is sufficiently privileged to
:   write in the news spool directory, it can update the central index files
:   itself. Running 'tin -u' from cron at some well chosen times will do the
:   same as the tin daemon. Setuid programs can always be a breach of system
:   security, so this option must be chosen with appropriate care. On the
:   other hand: this is the most simple setup: just one program doing all.

tind (v1.1 PL6 or later) was developed with one goal in mind - to index
all groups as quickly as possible. Using 'tin -u' to index all groups
is a good way of eating ones machine resources.

: >2) If I run tin as setuid, then the indexing seems to work OK, but
: >   then users editing comes up in read-only.
:
: I run tin setuid. I don't seem to have the read-only editing session,
: but I do have the setuid(real) failure message.

Some Unix's do not allow a normal user to switch back to the
original user after doing a setuid().

: >3) if I don't* run setuid tin, then I get users seeing
: >   "Permission denied" errors on the central index files.

1. Tin is reading the central index file.
2. It indexes any new articles not in the index file.
3. It tries to update the central index file.

The problem must be a permissions problem or point 2.

Iain

--
NAMES  Iain Lea    Iain.Lea%anl433.uucp@Germany.EU.net
SNAIL  Siemens AG, ANL A433SZ, Gruendlacher Str. 248, 8510 Fuerth, Germany.
PHONE  +49-911-3089-407 (work) +49-911-331963 (home) +49-911-3089-290 (FAX)  
Technical Details
Message-ID: <1993Jan13.072847.10855@anl433.uucp>
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!sparky!uunet!haven.umd.edu!darwin.sura.net!newsserver.jvnc.net!yale.edu!ira.uka.de!Germany.EU.net!anl433!Iain.Lea
References: <6948@tuegate.tue.nl>

Show Full Headers
Complete Article Headers
Message-ID: <1993Jan13.072847.10855@anl433.uucp>
Subject: Re: Tin and setuid (was xxxxxxx)
Date: Wed, 13 Jan 1993 07:28:47 GMT
From: Iain.Lea@anl433.uucp
References: <6948@tuegate.tue.nl>
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!sparky!uunet!haven.umd.edu!darwin.sura.net!newsserver.jvnc.net!yale.edu!ira.uka.de!Germany.EU.net!anl433!Iain.Lea
Newsgroups: news.software.readers
Organization: TIN Support
X-Newsreader: TIN [version 1.2 BETA PL0]
Lines: 61