🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by Kent C. Brodie Tue, 29 Dec 1992 20:12
xxxxxxx
#2890
Author: Kent C. Brodie
Date: Tue, 29 Dec 1992 20:12
19 lines
1241 bytes
I am using tin (PL7), and have a weird problem.  Anyone entering "vi"
(for posting an article, for instance) goes into READ MODE.

"/usr2/staff/kcb/.article" [Read only] 6 lines, 74 characters".

Same for following up, too.

The only way to get around this is FORCING a write when done.
(e.g., wq!).

Does anyone know why this might be happening?  It's causing
our users tons of grief........

-- 
--------------
Kent C. Brodie - Sr. Systems/Network Manager		brodie@post.its.mcw.edu
Information Technology Systems
Medical College of Wisconsin				(414) 257-8769
Re: xxxxxxx
#2962
Author: Iain.Lea
Date: Mon, 04 Jan 1993 20:16
14 lines
1186 bytes
Kent C. Brodie (kcb@post.its.mcw.edu) wrote:
:
: I am using tin (PL7), and have a weird problem.  Anyone entering "vi"
: (for posting an article, for instance) goes into READ MODE.

Sounds like you are running tin setuid and it is somehow not doing
a setuid to your login user before starting vi.

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)  
Tin and setuid (was xxxxxxx)
#2963
Author: Wim van Dorst
Date: Tue, 05 Jan 1993 15:28
36 lines
2516 bytes
Kent C. Brodie (kcb@post.its.mcw.edu) wrote:
: I am using tin (PL7), and have a weird problem.  Anyone entering "vi"
: (for posting an article, for instance) goes into READ MODE.

In article <1993Jan4.201633.11910@anl433.uucp> Iain.Lea@anl433.uucp writes:
>Sounds like you are running tin setuid and it is somehow not doing
>a setuid to your login user before starting vi.

Hey, now you're starting on setuid: I have something too. In my crontab
is have lines doing:
<in the night>  /usr/lib/uucp/uucico -Snewsfeedsystem
<much later>    /usr/lib/news/unbatch
<much later>    /usr/lib/news/tin -u

/usr/lib/news/tin -u is setuid news (setgid news too). Cron is started
from root in /etc/rc (of course), and works fine for all other setuid
programs, such as uucico and unbatch.

Now when doing this tin -u command it gives several message about
setuid(real) en setgid(news) not being permitted. Of course I should 
have read the manual properly before mentioning this point, or looked
in the source (that is why I was given it, I guess), but since setuid
is brought up, I thought I might as well come forward. Since my 
newsfeed is only small, and my machine fast enough, I don't think it
is a big problem, but mentioning might help solving.

I do not have the readonly problem mentioned by Kent Brodie. I do have
tin 1.1pl6 and tin 1.1pl8, both of which are great programs (Big 
Bravo, Iain), and both show the setuid failure mentioned.

Met vriendelijke groeten, Wim `Blue Baron' van Dorst
-- 
---------------------------------------------------------------------
Blue Baron = Wim van Dorst, Voice (+31) 074-443937, (+31) 02152-42319
(-: baron@clifton.hobby.nl  tgcpwd@urc.tue.nl  WvD@Akzo.400net.nl :-)
---------------------------------------------------------------------
Re: Tin and setuid (was xxxxxxx)
#2979
Author: Kent C. Brodie
Date: Wed, 06 Jan 1993 15:12
21 lines
1636 bytes
: In article <1993Jan4.201633.11910@anl433.uucp> Iain.Lea@anl433.uucp writes:
: >Sounds like you are running tin setuid and it is somehow not doing
: >a setuid to your login user before starting vi.

Well, I've narrowed down the problem, but I still don't get it.

1) If I run tin as setuid-tin, then is having tind doing anything for
me?
2) If I run tin as setuid, then the indexing seems to work OK, but
   then users editing comes up in read-only.
3) if I don't* run setuid tin, then I get users seeing
   "Permission denied" errors on the central index files.

Iain---   PLEASE help us,...   can you explain in detail
how this is REALLY supposed to work, properly, assuming we use tind??

-- 
--------------
Kent C. Brodie - Sr. Systems/Network Manager		brodie@post.its.mcw.edu
Information Technology Systems
Medical College of Wisconsin				(414) 257-8769
Re: Tin and setuid (was xxxxxxx)
#2980
Author: Andres Bauman
Date: Wed, 06 Jan 1993 19:15
19 lines
1663 bytes
Wim van Dorst (tgcpwd@rw7.urc.tue.nl) wrote:
> Now when doing this tin -u command it gives several message about
> setuid(real) en setgid(news) not being permitted. Of course I should 
> have read the manual properly before mentioning this point, or looked
> in the source (that is why I was given it, I guess), but since setuid
> is brought up, I thought I might as well come forward. Since my 
> newsfeed is only small, and my machine fast enough, I don't think it
> is a big problem, but mentioning might help solving.

I have the same problem with PL8 under SCO Unix. If i try to run
tin or tin -u from root I get setuid(real) error messages. 


-----------------------------------------------------------
Andres Bauman                   | Internet: andresb@kbfi.ee 
Institute of Chemical Physics   |    phone: 7(0142)454031
and Biophysics                  |      fax: 7(0142)440640
Ravala pst. 10                  |
EE0001, Tallinn, Estonia        |
Re: Tin and setuid (was xxxxxxx)
#3008
Author: System Adminstrator
Date: Fri, 08 Jan 1993 14:55
16 lines
1491 bytes
Andres Bauman (andresb@anubis.kbfi.ee) wrote:
: Wim van Dorst (tgcpwd@rw7.urc.tue.nl) wrote:
: > Now when doing this tin -u command it gives several message about
: > setuid(real) en setgid(news) not being permitted. Of course I should 
: > have read the manual properly before mentioning this point, or looked
: > in the source (that is why I was given it, I guess), but since setuid
: > is brought up, I thought I might as well come forward. Since my 
: > newsfeed is only small, and my machine fast enough, I don't think it
: > is a big problem, but mentioning might help solving.

: I have the same problem with PL8 under SCO Unix. If i try to run
: tin or tin -u from root I get setuid(real) error messages. 
why not run it under news?
-- 
Alan Thew
alan.thew@liverpool.ac.uk   ...!uknet!liv!alan.thew   +44 51 794 3735
Re: Tin and setuid (was xxxxxxx)
#3050
Author: Wim van Dorst
Date: Tue, 12 Jan 1993 09:05
55 lines
3472 bytes
Kent C. Brodie writes:
>1) If I run tin as setuid-tin, then is having tind doing anything for me?

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).
  
  [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
  ordinary users just use tin for _reading_ the news, which doesn't need
  provileges since the news spoold dir is world readable.
  
  [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.
  
I must point out that this is just my personal impression that I have
of how tin/tind works. I do hope that Iain can enlighten us, since both
Ken and I still have problems.
  
>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.

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

This is not explanable with the above three points: not-setuid tin 
apparently assumes that if central index files exist, updating
should be done centrally too. I had expected that not-setuid tin
would just put its index in $HOME, no matter which other index
files already exist. 

>Iain---   PLEASE help us,...   can you explain in detail
>how this is REALLY supposed to work, properly, assuming we use tind??

Yes, Iain, would you please?

Met vriendelijke groeten, Wim `Blue Baron' van Dorst
-- 
---------------------------------------------------------------------
Blue Baron = Wim van Dorst, Voice (+31) 074-443937, (+31) 02152-42319
(-: baron@clifton.hobby.nl  tgcpwd@urc.tue.nl  WvD@Akzo.400net.nl :-)
---------------------------------------------------------------------
Re: Tin and setuid (was xxxxxxx)
#3066
Author: 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)  
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