Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!clyde!ima!minya!jc From: jc@minya.UUCP (jc) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: How to set ulimit in SysV Message-ID: <275@minya.UUCP> Date: Sun, 4-Oct-87 23:50:32 EDT Article-I.D.: minya.275 Posted: Sun Oct 4 23:50:32 1987 Date-Received: Thu, 8-Oct-87 00:50:08 EDT References: <1408@dasys1.UUCP> <6475@brl-smoke.ARPA> <6502@brl-smoke.ARPA> Organization: home Lines: 27 Keywords: patch ulimit Summary: Here's how... Xref: mnetor comp.unix.wizards:4691 comp.unix.questions:4400 > >As for the original problem, can't superuser set the ligit up as > >well as down? > > That IS the original problem! ONLY the super-user can get around > the ridiculously small initial ulimit coded into the kernel! OK, I decided to see how hard this one was; it took 15 minutes, of which 13 were due to a bug in init.... What you do is change your inittab entries for getty to: t3:2:respawn:/bin/sh /etc/Getty tty03 tty03 The /etc/Getty script looks like: ulimit 8000 # or whatever you like. exec /etc/getty $* The bug in init is that the "/bin/sh " is required; init refused to run a shell script directly. [Grumble; the toikeys; grumble; wasting 13 minutes of my time; grumble; had to go to 2nd terminal to recover when the first one went zombie; grumble... :-] There, wasn't that easy? -- John Chambers <{adelie,ima,maynard}!minya!{jc,root}> (617/484-6393)