Unix 5.4 and ulimit

Richard Meesters ram at attcan.UUCP
Wed Apr 24 23:57:48 AEST 1991


In article <1991Apr21.140740.6766 at gold.sub.org>, root at gold.sub.org (Christian Seyb) writes:
> I am using Unix 5.4 (4.0.2) and have a problem with ulimit.
> 
> in /etc/default/login I have the following entry:
> ULIMIT=99999
> 
> This should give every user (also uucico and news) a very high ulimit.
> The problem is, that this doesn't work. The default ulimit is still
> 2MB for any user logging in. I also tried to change the default value
> of ulimit in /etc/conf/mtune - without any change to the behaviour of
> ulimit.
> 
> For normal users the solution is easy - I just set the desired ulimit
> in $HOME/.profile. For programs like uucico, this is not possible.
> 
> Any suggestions?
> 

This may help - Info via a support newsletter.

You need to tune the SFSZLIM and HFSZLIM (in /etc/conf/cf.d/stune) to set the
required ulimit.  These values are tuned with a hex value of the file size 
in bytes (eg:  0x500000 is 5MB).  SFSZLIM is the soft limit specifying the 
largest offset in bytes of any single file that may be created by the process.
HFSZLIM is the max value of SFSZLIM.

You can overide this setting by using ULIMIT in /etc/default/login, but any
program that is exec'd setuid (ie: uucico), then ulimit will be set back to 
the system wide defaults defined by SFSZLIM and HFSZLIM.  

Regards,

------------------------------------------------------------------------------
     Richard A Meesters                |
     Technical Support Specialist      |     Insert std.logo here
     AT&T Canada                       |
                                       |     "Waste is a terrible thing
     ATTMAIL: ....attmail!rmeesters    |      to mind...clean up your act"
     UUCP:  ...att!attcan!ram          |
------------------------------------------------------------------------------



More information about the Comp.bugs.sys5 mailing list