Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Re: changing limits for user 'nobody'
  2000-08-25  4:00 changing limits for user 'nobody' Keith Bradnam
  2000-08-25  4:00 ` Daniel S. Riley
@ 2000-08-25  4:00 ` Adam Price
  1 sibling, 0 replies; 3+ messages in thread
From: Adam Price @ 2000-08-25  4:00 UTC (permalink / raw)



Keith Bradnam wrote in message ...
>
>I have a problem regarding the datasize limit for a process running under
>the user 'nobody'.
>
>Our apache web server (running on Tru64 5.0a) starts on server boot-up.
>The initial httpd process runs as root and subsequent httpd processes are
>spawned as processes belonging to the 'nobody' user.
>
>I assume that any scripts called by the web server also run as 'nobody'.
>One of our scripts (which sometimes needs a lot of memory, i.e. higher
>than the default 'datasize' limit) occasionally fails.
>
>Is there a way of changing the default limits for a user such as
>'nobody'???
>
>
>If I setup the web server to run under a user account (e.g. 'server') then
>I could control the limit for the new account by use of the limit
>command.  But as I understand it, this can only be changed by adding a
>line to the .cshrc file.  If any such 'server' user never logs in
>properly, will it always have the default limits too, no matter what you
>specify in the .cshrc file???
>
>Thanks in advance,
>
>Keith
>

Try looking at enhanced security (a good idea for a web server anyway). When
you turn this on you can set limits for individual users. See the man pages for
edauth and prpasswd and the Security Manual on the Documentation CD
for details.

Hope this helps
Adam Price






^ permalink raw reply	[flat|nested] 3+ messages in thread

* changing limits for user 'nobody'
@ 2000-08-25  4:00 Keith Bradnam
  2000-08-25  4:00 ` Daniel S. Riley
  2000-08-25  4:00 ` Adam Price
  0 siblings, 2 replies; 3+ messages in thread
From: Keith Bradnam @ 2000-08-25  4:00 UTC (permalink / raw)



I have a problem regarding the datasize limit for a process running under
the user 'nobody'.

Our apache web server (running on Tru64 5.0a) starts on server boot-up.
The initial httpd process runs as root and subsequent httpd processes are
spawned as processes belonging to the 'nobody' user.

I assume that any scripts called by the web server also run as 'nobody'.
One of our scripts (which sometimes needs a lot of memory, i.e. higher
than the default 'datasize' limit) occasionally fails.  

Is there a way of changing the default limits for a user such as 
'nobody'??? 


If I setup the web server to run under a user account (e.g. 'server') then
I could control the limit for the new account by use of the limit
command.  But as I understand it, this can only be changed by adding a
line to the .cshrc file.  If any such 'server' user never logs in
properly, will it always have the default limits too, no matter what you
specify in the .cshrc file???

Thanks in advance,

Keith

~  Keith Bradnam - Developer, Arabidopsis Genome Resource (AGR)
~  Nottingham Arabidopsis Stock Centre - http://nasc.nott.ac.uk/
~  University Park, University of Nottingham, NG7 2RD, UK
~  Tel: (0115) 951 3091 





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: changing limits for user 'nobody'
  2000-08-25  4:00 changing limits for user 'nobody' Keith Bradnam
@ 2000-08-25  4:00 ` Daniel S. Riley
  2000-08-25  4:00 ` Adam Price
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel S. Riley @ 2000-08-25  4:00 UTC (permalink / raw)


Keith Bradnam <keith@thale.nott.ac.uk> writes:
> Our apache web server (running on Tru64 5.0a) starts on server boot-up.
[...]
> One of our scripts (which sometimes needs a lot of memory, i.e. higher
> than the default 'datasize' limit) occasionally fails.  
> 
> Is there a way of changing the default limits for a user such as 
> 'nobody'??? 

Two other possibilities that might be easier:

1) change the limit in the script that is failing--if it's a /bin/sh
script, use the 'ulimit -d' command; for a csh script, 'limit data'.
If it's not a shell script, there may be a way to change the limit in
the language that it is in, or you could wrap it in a shell script
that does something like

#! /bin/sh
ulimit -d 4242424
exec real-script "$@"

2) add a 'limit -d' command to the init.d script that starts apache.
All the children will inherit the higher limit.

-- 
Dan Riley                                         dsr@mail.lns.cornell.edu
Wilson Lab, Cornell University      <URL:http://www.lns.cornell.edu/~dsr/>
    "History teaches us that days like this are best spent in bed"



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-08-25  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-25  4:00 changing limits for user 'nobody' Keith Bradnam
2000-08-25  4:00 ` Daniel S. Riley
2000-08-25  4:00 ` Adam Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox