RE: Automatically configure ulimit -SOLVED
AFAIK hard means that is the absolute max amount of (in my case) open files soft means that the user will default to that amount. So fo example my requirement was that the user account would have 8096 files open, rather than setting the hard to 8096 and then requiring that the user "ulimit -n 8096" from the default 1024, I put in the soft setting to 8096. When I log on as a user and type ulimit -a I get the desired result. Hope this helps Richard -Original Message- From: Ben Logan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 2:56 AM To: '[EMAIL PROTECTED]' Subject: Re: Automatically configure ulimit -SOLVED On Mon, Mar 11, 2002 at 12:34:35PM -0800, Richard Wilson wrote: > There is a way to configure this. > see /ect/security/limits.conf > > This is handled by a PAM during authentication. Great, thanks. Now can anyone explain the difference between "hard" and "soft" limits? Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 "There was a boy called Eustace Clarence Scrubb, and he almost deserved it." -- C. S. Lewis, "The Chronicles of Narnia" ___ 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
Re: Automatically configure ulimit -SOLVED
On Mon, Mar 11, 2002 at 12:34:35PM -0800, Richard Wilson wrote: > There is a way to configure this. > see /ect/security/limits.conf > > This is handled by a PAM during authentication. Great, thanks. Now can anyone explain the difference between "hard" and "soft" limits? Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 "There was a boy called Eustace Clarence Scrubb, and he almost deserved it." -- C. S. Lewis, "The Chronicles of Narnia" ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: Automatically configure ulimit -SOLVED
There is a way to configure this. see /ect/security/limits.conf This is handled by a PAM during authentication. -Original Message- From: Richard Wilson Sent: Friday, March 08, 2002 1:57 PM To: '[EMAIL PROTECTED]' Subject: RE: Automatically configure ulimit Ben: I'm trying to increase the number of open files with "ulimit -n ", 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 ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: Automatically configure ulimit
Ben: I'm trying to increase the number of open files with "ulimit -n ", 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
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
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