Ben: I'm trying to increase the number of open files with "ulimit -n nnnn", this operation requires super user privilege. Here is what I've found out so far. It seems that modifying either /etc/profile or /etc/bashrc will not work for my purpose since this runs under the user's UID. Another option would of been allowing a "su" for /bin/ulimit by modifying /etc/sudoers, unfortunately ulimit is built in to /bin/bash so this is not a possibility for me.
I did find one hack that mentioned that you had to replace init with a different version. see /usr/share/emacs/20.7/etc/ulimit.hack for details, this hack modifies the size of the files not the number of files. So this hack will not work for me. I'm thinking that maybe recompiling the kernel or bash would also do the trick. Another option is possibly modifying the settings via /proc file system, do not know where to start on this one. A third option is using inittab to launch a script that sets the desired ulimit and then fires off migetty, or set this in ssh somehow; all the user sessions will be via ssh. I may be way off base since I've only have less than 3 months experience with Linux\Unix. Can somebody on the list tell me if I'm way off base here? TIA Richard -----Original Message----- From: Richard Wilson Sent: Wednesday, March 06, 2002 4:16 PM To: '[EMAIL PROTECTED]' Subject: RE: Automatically configure ulimit Thank you Ben, we have tried that here, it seems that /etc/profile runs in the context of the user, I've been told that only the super user can increase default settings. I will keep you posted on what I find out. regards Richard -----Original Message----- From: Ben Logan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 1:43 PM To: '[EMAIL PROTECTED]' Subject: Re: Automatically configure ulimit On Wed, Mar 06, 2002 at 11:31:35AM -0800, Richard Wilson wrote: > I'm trying to configure a set of RH 7.2 machines to default to a specific > number of files that can be opened. How would I configure this so the > environment is set at boot time? There is a 'ulimit' line in /etc/profile on my system (Redhat 7.1). You could tweak that. Of course, I guess that it only applies to those running Bash as a shell. I've wondered myself if there is a way to set those at a kernel level. Regards, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 Pain is a thing of the mind. The mind can be controlled. -- Spock, "Operation -- Annihilate!" stardate 3287.2 _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list