Skip to main content
added 193 characters in body
Source Link
tijagi
  • 982
  • 1
  • 11
  • 24

How to do that? Without PAM on my GNU/Linux OS the number of open files is 1024 by default and cannot be raised above 4096 (via ulimit -n NNNN command) despiting what is written in /etc/security/limits.conf. So, how does it work without PAM and how to set limits in such case?

===upd===

I decided for myself to use PAM. For those who wants to exceed the hard limit of opened files without PAM, look up for the RLIMIT_NOFILE constant in the kernelinclude/asm-generic/resource.h and INR_OPEN_MAX in include/linux/fs.h which defines the number of 4096 files as hard limit for rlimits. Check also CAP_SYS_RESOURCE which is required to be able to call setrlimit() on a running system to exceed the limitslimit. It seems there is no way to do a system call like setrlimit() in bash, but it may be implemented as a binary executable file or. Or you can make a kernel patch.

How to do that? Without PAM on my GNU/Linux OS the number of open files is 1024 by default and cannot be raised above 4096 (via ulimit -n NNNN command) despiting what is written in /etc/security/limits.conf. So, how does it work without PAM and how to set limits in such case?

===upd===

I decided for myself to use PAM. For those who wants to exceed the hard limit of opened files without PAM, look up for the RLIMIT_NOFILE constant in the kernel and CAP_SYS_RESOURCE which is required to be able to exceed the limits. It seems there is no way to do a system call like setrlimit() in bash, but it may be implemented as a binary executable file or a kernel patch.

How to do that? Without PAM on my GNU/Linux OS the number of open files is 1024 by default and cannot be raised above 4096 (via ulimit -n NNNN command) despiting what is written in /etc/security/limits.conf. So, how does it work without PAM and how to set limits in such case?

===upd===

I decided for myself to use PAM. For those who wants to exceed the hard limit of opened files without PAM, look up for the RLIMIT_NOFILE constant in include/asm-generic/resource.h and INR_OPEN_MAX in include/linux/fs.h which defines the number of 4096 files as hard limit for rlimits. Check also CAP_SYS_RESOURCE which is required to be able to call setrlimit() on a running system to exceed the limit. It seems there is no way to do a system call like setrlimit() in bash, but it may be implemented as a binary executable file. Or you can make a kernel patch.

added 80 characters in body
Source Link
tijagi
  • 982
  • 1
  • 11
  • 24

How to do that? Without PAM on my GNU/Linux OS the number of openedopen files is 1024 by default and cannot be raised above 4096 (via ulimit -n NNNN command) despiting what is written in /etc/security/limits.conf. So, how does it work without PAM and how to set limits in such case?

===upd===

I decided for myself to use PAM. For those who wants to exceed the hard limit of opened files without PAM, look up for the RLIMIT_NOFILE constant in the kernel and CAP_SYS_RESOURCE which is required to be able to exceed the limits. It seems there is no way to do a system call like setrlimit() in bash, but it may be implemented as a binary executable file or a kernel patch.

How to do that? Without PAM on my GNU/Linux OS the number of opened files is 1024 by default and cannot be raised above 4096 (via ulimit -n NNNN command) despiting what is written in /etc/security/limits.conf. So, how does it work without PAM and how to set limits in such case?

===upd===

I decided for myself to use PAM. For those who wants to exceed the hard limit of opened files, look up for the RLIMIT_NOFILE constant in the kernel and CAP_SYS_RESOURCE. It seems there is no way to do a system call like setrlimit() in bash, but it may be implemented as a binary.

How to do that? Without PAM on my GNU/Linux OS the number of open files is 1024 by default and cannot be raised above 4096 (via ulimit -n NNNN command) despiting what is written in /etc/security/limits.conf. So, how does it work without PAM and how to set limits in such case?

===upd===

I decided for myself to use PAM. For those who wants to exceed the hard limit of opened files without PAM, look up for the RLIMIT_NOFILE constant in the kernel and CAP_SYS_RESOURCE which is required to be able to exceed the limits. It seems there is no way to do a system call like setrlimit() in bash, but it may be implemented as a binary executable file or a kernel patch.

added 300 characters in body
Source Link
tijagi
  • 982
  • 1
  • 11
  • 24

How to do that? Without PAM on my GNU/Linux OS the number of opened files is 1024 by default and cannot be raised above 4096 (via ulimit -n NNNN command) despiting what is written in /etc/security/limits.conf. So, how does it work without PAM and how to set limits in such case?

===upd===

I decided for myself to use PAM. For those who wants to exceed the hard limit of opened files, look up for the RLIMIT_NOFILE constant in the kernel and CAP_SYS_RESOURCE. It seems there is no way to do a system call like setrlimit() in bash, but it may be implemented as a binary.

How to do that? Without PAM on my GNU/Linux OS the number of opened files is 1024 by default and cannot be raised above 4096 (via ulimit -n NNNN command) despiting what is written in /etc/security/limits.conf. So, how does it work without PAM and how to set limits in such case?

How to do that? Without PAM on my GNU/Linux OS the number of opened files is 1024 by default and cannot be raised above 4096 (via ulimit -n NNNN command) despiting what is written in /etc/security/limits.conf. So, how does it work without PAM and how to set limits in such case?

===upd===

I decided for myself to use PAM. For those who wants to exceed the hard limit of opened files, look up for the RLIMIT_NOFILE constant in the kernel and CAP_SYS_RESOURCE. It seems there is no way to do a system call like setrlimit() in bash, but it may be implemented as a binary.

Source Link
tijagi
  • 982
  • 1
  • 11
  • 24
Loading