Re: limit addendum
Re: limit addendum
- Subject: Re: limit addendum
- From: Justin Walker <email@hidden>
- Date: Sat, 1 Mar 2003 20:51:13 -0800
On Saturday, Mar 1, 2003, at 20:20 US/Pacific, Markian Hlynka wrote:
right, sorry, according to the man page, "Only the super-user may
raise the hard limits". So it is _possible, but I just can't figure
out _how.
Some hard limits can be raised with sysctl. Others can be raised with
the shell's 'limit/ulimit' command, but these only affect the process
its descendents. Thus, you can't overcome hard limits unless you can
become root.
A grody trick is to invoke a "root" shell (e.g., 'sudo bash'), raise
the limit, and then invoke a shell as yourself. As a child of a
process with raised limits, the shell running with your identity will
have its parent's limits.
Thus, for example, you can raise the system's 'max' limit for files or
processes per user, as root, and then fork a shell as you ("sudo -u you
bash"), and the shell and its descendants will have the new limits to
deal with.
Other hard limits are just constants in the kernel source, and you
would have to recompile to change them. Check the kernel source
(xnu/bsd/kern/kern_resource.c) for details.
Regards,
Justin
--
/~\ The ASCII Justin C. Walker, Curmudgeon-at-Large
\ / Ribbon Campaign
X Help cure HTML Email
/ \
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.