Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!psuvax1!allien!Ahab!tel From: tel@Ahab.UUCP Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: Another Annoying Microport Inquiry Message-ID: <39@Ahab.UUCP> Date: Fri, 2-Oct-87 13:23:06 EDT Article-I.D.: Ahab.39 Posted: Fri Oct 2 13:23:06 1987 Date-Received: Sun, 4-Oct-87 06:58:46 EDT References: <1408@dasys1.UUCP> <6475@brl-smoke.ARPA> <7501@steinmetz.steinmetz.UUCP> Organization: AT&T National Systems Support Center, South Plainfield, NJ Lines: 70 Keywords: Microport patch ulimit Xref: utgpu comp.unix.wizards:4322 comp.unix.questions:3918 Summary: Changing your system wide ulimit. In article <7501@steinmetz.steinmetz.UUCP>, davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) writes: > > I agree that there should be a simple **well documented** way to change > this. As for the original problem, can't superuser set the ligit up as > well as down? I'm not root on this system and can't try. There are a couple of ways to do this. One way affects all terminals and logins: **** CAUTION: keep at least two terminals logged in as root (super user) when following these instructions. In the event that step 4 would fail it is then possible to move /bin/login2 back to /bin/login **** To install ulimit fix perform the following steps: 1) Login in as root 2) Modify the ulimit.c program, replacing the "****" characters on line 11 with the desired ulimit value. (should be a multiple of 2048) 3) execute: mv /bin/login /bin/login2 4) execute: cc -O ulimit.c -o /bin/login 5) execute: chown root /bin/login execute: chmod 4555 /bin/login *These two commands set the owner and perrmissions so that the ulimit will be set upon login. The following is the ulimit.c program: #include main (argc,argv) char **argv; { char *ptr; char *largs[3]; char logname[64]; largs[0] = "login"; largs[1] = (char *)strncpy(logname,argv[1],64); largs[2] = NULL; ulimit(2,****); execv("/bin/login2",largs); } ------ Another way that would affect only specific tty lines could be put a line in your /etc/inittab that looks like: 11:1234:respawn:sh -c "ulimit 50000; exec /etc/getty tty11 4800" or 12:1234:respawn:sh -c "ulimit 50000; exec /usr/lib/uucp/uugetty -r tty12 9600" or whatever. Note, these do work on UNIX SysV on AT&T 3b computers and probably on any other UNIX system. ---------- Also, note that if you are using SYSV 3.1 or higher on a 3b2 computer, ULIMIT is a tunable parameter in /etc/master.d/kernel. --Tom Lowe