Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!ssbell!kent From: kent@ssbell.UUCP (Kent Landfield) Newsgroups: comp.bugs.sys5 Subject: Re: ulimit -- You don't need sources! Keywords: Different copies of login ? Message-ID: <474@ssbell.UUCP> Date: 10 May 89 06:07:34 GMT References: <836@twwells.uucp> <4428@ihuxz.ATT.COM> <545@aurora.AthabascaU.CA> <5627@xyzzy.UUCP> <1153@unh.UUCP> <16463@rpp386.Dallas.TX.US> <697@occrsh.ATT.COM> Reply-To: kent@ssbell.UUCP (ssbell Admin) Organization: Sterling Software, FSG-IMD, Bellevue, NE. Lines: 35 In article <697@occrsh.ATT.COM> rjd@occrsh.UUCP (Randy_Davis) writes: > > Wrong - all of these schemes to change the ulimit BEFORE the login program >is run from the normal sequence init-getty-login-shell will not work!!! > > If the ulimit is set to some high number before login is run (and, in fact it >IS), such as in the kernel, and if you are running a System V version before the >ulimit was settable in the /etc/master.d/kernel file, the ulimit for logins is >last set in the /bin/login program. So, setting your kernel, your init, or >your getty ulimit higher would be fine, yet as soon as a person logs in and >run this (pre-3.0) /bin/login, the line "ulimit(2,);" (near line >248 in the source if you are curious) would be implemented for all non-root >logins, and you are back to where you started. I have a System V.2 source licence direct from AT&T. I examined the source to login and found that this just was *not* true. I don't know what version you are looking at but the System V.2 version of login that your company distributed does not have any reference to ulimit in it anywhere. The ulimit for users is initially set in uts/machine/os/main.c with a line like: u.u_limit = CDLIMIT; There are NO references to ulimit in V.2 init, V.2 getty or V.2 login. The wrapper ideas *can* work, *do* work, and *are* working at a number of sites that I know about. This is a kludge to get around a "feeeature" that in my opinion is more trouble than its worth. >Randy Davis UUCP: ...(att!)ocrjd!randy This sounds like a CM problem to me.. Which Version, What Version, Whose's Version, Your Version. :-) -Kent+ --- Kent Landfield UUCP: kent@ssbell Sterling Software FSG/IMD INTERNET: kent%ssbell.uucp@uunet.uu.net 1404 Ft. Crook Rd. South Phone: (402) 291-8300 Bellevue, NE. 68005-2969 FAX: (402) 291-4362