Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ttrdc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!mgnetp!ltuxa!ttrdc!levy From: levy@ttrdc.UUCP (Daniel R. Levy) Newsgroups: net.unix-wizards Subject: Re: Ulimits strikes again (SYSV) Message-ID: <394@ttrdc.UUCP> Date: Wed, 4-Sep-85 20:21:44 EDT Article-I.D.: ttrdc.394 Posted: Wed Sep 4 20:21:44 1985 Date-Received: Fri, 6-Sep-85 05:04:17 EDT References: <1139@brl-tgr.ARPA> <1140@brl-tgr.ARPA> <57@cbnap.UUCP> <2749@sun.uucp> Organization: AT&T, Computer Systems Division, Skokie, IL Lines: 57 In article <2749@sun.uucp>, guy@sun.uucp (Guy Harris) writes: > >> Even changing the default value used by ulimit sounds like a minor code >> change (if you have source of course). > >It isn't hard once you find it. Just change the CDLIMIT parameter in >. (This is in S5; S3 embedded the constant "1L << 11" into >the source code of "main.c".) If you don't have source, you might get >somebody to try to find where the number is hidden and patch it. > >Now, would somebody in the USDL *PLEASE* do the following: > > cd > get -e SCCS/s.param.h > ed param.h > /CDLIMIT/s/(1L<<11)/0x7fffffff/ > w > q > delta SCCS/s.param.h > Gave UNIX a sane initial ulimit value. > ^D > rm param.h > get SCCS/s.param.h > > Guy Harris Let me share my dirty little fix for this (and let Guy debunk it); it does not even require patching a binary. # mv /etc/getty /etc/getty.x # cat > /etc/getty ulimit 4096 # OR WHATEVER exec /etc/getty.x $* ^D # chmod 544 /etc/getty # exit login: joeuser Password: motd etc. $ ulimit 4096 $ Note: if you have uugetty on some ports you will need to do a similar thing for it. -- ------------------------------- Disclaimer: The views contained herein are | dan levy | yvel nad | my own and are not at all those of my em- | an engihacker @ | ployer, my pets, my plants, my boss, or the | at&t computer systems division | s.a. of any computer upon which I may hack. | skokie, illinois | -------------------------------- Path: ..!ihnp4!ttrdc!levy or: ..!ihnp4!iheds!ttbcad!levy