Setting max open files inside a chroot
This question was posted on Serverfault.com[1] by me but I did not get
any responses. Any help appreciated.
I have setup the limits in the host (the chroot being the guest) via
/etc/security/limits.conf and that works just fine:
$ ulimit -n
65535
However, inside the chroot it is still the old value
$ sudo chroot /opt/id/epsilon/
# ulimit -n
1024
I have this in the /etc/security/limits.conf in the chroot too but it
seems to have no effect.
* soft nofile 65535
* hard nofile 65535
pam_limits.so is enabled for login and sudo inside the chroot. Are there
others I should enable it for ?
Footnotes:
[1] http://serverfault.com/questions/182098/setting-max-open-files-inside-a-chroot
--
Alok
Reply to: