🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Adam Bentley Tue, 27 Jul 1999 00:00
Re: INN 2.2 (malloc on expiry problems - still)
#38848
Author: Adam Bentley
Date: Tue, 27 Jul 1999 00:00
37 lines
2257 bytes
On Mon, 26 Jul 1999, John P Speno wrote:

> Have you increased the memory limits for your expiration process?
> (hint: see man ulimit).

umm, yes, but as a non root user you cannot increase the limits beyond
those already set. Only root can do that, and I cannot get the ulimit
settings to be inherited across an su, ie....

#!/bin/sh
ulimit -thing value
su - news </path/to/news.daily


does not pass the new settings..... according to DEC support whom I spoke
to yesterday there is no way to pass the settings over like this, you have
to start tweaking kernel parameters..... ;-(

If I am being completely stupid and missing something here, please tell
me.!

many thanks for responding though.

regards,
--                                              _
                                    	       /-\dam
-------------------------------------------------------------------------
FLESH: Adam Bentley, Systems/Networking/Usenet, Coventry University. UK
INET : A.Bentley@coventry.ac.uk
PGP  : finger ccx009@leofric.coventry.ac.uk
PRINT: BA 7F 70 41 4B 17 20 16  5F C7 94 AB 07 F3 9C A5 
-------------------------------------------------------------------------
			#include <std/disclaimer.h>				
-------------------------------------------------------------------------


Re: INN 2.2 (malloc on expiry problems - still)
#38851
Author: Jon Harley
Date: Tue, 27 Jul 1999 00:00
44 lines
2504 bytes
Adam Bentley <ccx009@coventry.ac.uk> writes:

>On Mon, 26 Jul 1999, John P Speno wrote:
>> Have you increased the memory limits for your expiration process?
>> (hint: see man ulimit).

>umm, yes, but as a non root user you cannot increase the limits beyond
>those already set. Only root can do that, and I cannot get the ulimit
>settings to be inherited across an su, ie....
>
>#!/bin/sh
>ulimit -thing value
>su - news </path/to/news.daily
>
>does not pass the new settings..... according to DEC support whom I spoke
>to yesterday there is no way to pass the settings over like this, you have
>to start tweaking kernel parameters..... ;-(

Presumably you're so keen to use su so that the programs in news.daily
create their files with the right ownership?

What about if you:
* run news.daily without expire
* make expire setuid to news
* run expire in the same sub-shell as the ulimit command ie
  (ulimit -whatever; expire -whatever)

I believe this will allow expire to use the ulimits you set.
Failing that I suppose you could run expire as root and change the
file ownerships afterwards (guess INN'd have to be down for the
duration, though).

Otherwise, perhaps you need to ask in one of the comp.unix groups -
this is really a unix question more than a news-specific question!


Jon
-- 
_____________________________________________________________________________
Dr JW Harley        J.W.Harley@warwick.ac.uk          UNIX/ATM/SAP Consultant
See http://www.warwick.ac.uk/J.W.Harley/ for           IT Services Department
full contact details, PGP public key, CV etc            University of Warwick

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