Xref: utzoo comp.unix.sysv386:7276 comp.bugs.sys5:1521 Path: utzoo!attcan!ram From: ram@attcan.UUCP (Richard Meesters) Newsgroups: comp.unix.sysv386,comp.bugs.sys5 Subject: Re: Unix 5.4 and ulimit Summary: Maybe Message-ID: <14432@attcan.UUCP> Date: 24 Apr 91 13:57:48 GMT References: <1991Apr21.140740.6766@gold.sub.org> Organization: AT&T Canada Inc., Toronto Lines: 40 In article <1991Apr21.140740.6766@gold.sub.org>, root@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 | ------------------------------------------------------------------------------