ulimit -- You don't need sources!

John F. Haugh II jfh at rpp386.Dallas.TX.US
Sat May 6 09:03:36 AEST 1989


In article <1153 at unh.UUCP> pss at unh.UUCP (Paul S. Sawyer) writes:
>In article <5627 at xyzzy.UUCP>, duncan at rtp48.dg.com (W. Lee Duncan) writes:
>> Simply move /bin/login to, e.g. /usr/lib/old_login (and make it non-setuid).
>> Then, create a new /bin/login program (which will be setuid to root):
>> 
>Since INIT is running as root anyway, it can set the ulimit and then call
>getty.  E.g., in /etc/inittab:
>
>t000:2:respawn:/etc/gettyup tty000 9600

No - since UNIX forks init directly out of the kernel as root, why
not step in there and raise the ulimit before the real init gets to
run?

Now you only have one wrapper instead of all the getty, login, cron,
and what-else-have-you versions.



More information about the Comp.bugs.sys5 mailing list