🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
5 messages
5 total messages Started by That's MR. Idiot to you Tue, 22 May 1990 16:25
6.4.3: nn not owned by the usenet account problem.
#440
Author: That's MR. Idiot to you
Date: Tue, 22 May 1990 16:25
22 lines
1683 bytes
This is a fairly trivial problem (in the massive scheme of things) but I
just tracked it down so I thought I'd mention it. nn 6.3 ran setuid to its
owner. nn 6.4, as installed doesn't seem to. One offshoot of that is that
you can no longer set up a shell script to run the nn expire when the usenet
expire finishes, which is what we do.

The error is something on the order of "Check GATE file". the problem is
that, not being setuid, the other process can't create the file the master
looks for to receive messages. All our usenet stuff is owned by usenet,
nn is owned by me.

The correct way to handle this is to make nn owned by the same user as the
news system (or put the nnadmin =EYW in cron, but that assumes you know when
expire will finish). The quick way I fixed it for now is to make nnadmin
setuid to chuq, but I'm sure that opens up some interesting security holes,
so I'm going to change that fairly soon.

-- 

Chuq Von Rospach   <+>   chuq@apple.com   <+>   [This is myself speaking]

It isn't easy being green.		-- Kermit
Re: 6.4.3: nn not owned by the usenet account problem.
#454
Author: Scott Merrilees
Date: Thu, 24 May 1990 01:31
17 lines
1406 bytes
chuq@Apple.COM (That's MR. Idiot to you) writes:
>The correct way to handle this is to make nn owned by the same user as the
>news system (or put the nnadmin =EYW in cron, but that assumes you know when
>expire will finish). The quick way I fixed it for now is to make nnadmin
>setuid to chuq, but I'm sure that opens up some interesting security holes,
>so I'm going to change that fairly soon.

I am currently still running 6.3.10 (haven't had time to upgrade yet), and
I don't run it setuid.

I run doexpire && upact && nnadmin from my news crontab, and have had no
problems.

Sm
-- 
Scott Merrilees, BHP Rod & Bar Products Division, Newcastle, Australia
INTERNET: Sm@bhpese.oz.au      UUCP: ...!uunet!bhpese.oz.au!Sm
Re: 6.4.3: nn not owned by the usenet account problem.
#469
Author: leo
Date: Fri, 25 May 1990 17:22
18 lines
1488 bytes
Sm@bhpese.oz.au (Scott Merrilees) writes:
>chuq@Apple.COM (That's MR. Idiot to you) writes:
>>The correct way to handle this is to make nn owned by the same user as the
>>news system (or put the nnadmin =EYW in cron, but that assumes you know when
>>expire will finish). The quick way I fixed it for now is to make nnadmin
>>setuid to chuq, but I'm sure that opens up some interesting security holes,
>>so I'm going to change that fairly soon.
>I run doexpire && upact && nnadmin from my news crontab, and have had no
>problems.

Why not use the -E expire option when starting nnmaster at system
boot.  Isn't that equivalent to running nnadmin =EYW from cron, but
automatically at the correct time?  Seems to work well for me.

--
Leo	leo@aai.com   leo%aai@uunet.uu.net   ...uunet!aai!leo
-- 
Leo	leo@aai.com   leo%aai@uunet.uu.net   ...uunet!aai!leo
Re: 6.4.3: nn not owned by the usenet account problem.
#482
Author: Kim F. Storm
Date: Sun, 27 May 1990 18:59
33 lines
2005 bytes
leo@aai.com writes:

>Why not use the -E expire option when starting nnmaster at system
>boot.  Isn't that equivalent to running nnadmin =EYW from cron, but
>automatically at the correct time?  Seems to work well for me.

*NO* that is not equivalent!!!!!!!

The -E option without a numeric argument is a *dummy option* in rel. 6.4
(to avoid breaking 6.3 installations).

You use the -E<n> option to choose the expiration method to be used
when expire is actually performed.  It has nothing to do with initiating
expiration.

You can use -e to initiate expire whenever the "min" field changes in
a group, but as you may recall from 6.3 this is not a good indication
of whether expire has been run (it doesn't necessarily remove the first
article).  So I cannot recommend this, at least not as the only method
to initiate expire!

To initiate expire properly on all groups, you must use nnadmin =EYW,
or provided nnmaster is not running, you can use nnmaster -F (which can
run expire selectively on certain groups).

What do you mean by "at the correct time"?  Isn't that when the normal
expire has finished - so putting
	* * * * * .../news/expire && nnamdin =EYW
in crontab seems like the best thing to do.

-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
Re: 6.4.3: nn not owned by the usenet account problem.
#499
Author: leo
Date: Wed, 30 May 1990 06:01
31 lines
2080 bytes
storm@texas.dk (Kim F. Storm) writes:
>leo@aai.com writes:
>>Why not use the -E expire option when starting nnmaster at system
>>boot.  Isn't that equivalent to running nnadmin =EYW from cron, but
>>automatically at the correct time?  Seems to work well for me.
>*NO* that is not equivalent!!!!!!!
>You can use -e to initiate expire whenever the "min" field changes in
>a group, but as you may recall from 6.3 this is not a good indication
>of whether expire has been run (it doesn't necessarily remove the first
>article).  So I cannot recommend this, at least not as the only method
>to initiate expire!

Oops!  That was what I meant.  Somewhere between beta and .1 I got -E and
-e confused!

>What do you mean by "at the correct time"?  Isn't that when the normal
>expire has finished - so putting
>	* * * * * .../news/expire && nnamdin =EYW
>in crontab seems like the best thing to do.

What I meant by "the correct time" was - when expire has finished.  How
long it takes is very variable.  Hmm, but I suppose that nn might well
notice that the active file has changed on one of its every-ten-minute checks
even before the expire has finished.  So I guess your suggestion of running
them sequentially from cron is best of all.

Sorry if I mislead anyone!
--
Leo	leo@aai.com   leo%aai@uunet.uu.net   ...uunet!aai!leo
-- 
Leo	leo@aai.com   leo%aai@uunet.uu.net   ...uunet!aai!leo
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