Univention Bugzilla – Bug 35362
increase default max open files limit (default: 1024)
Last modified: 2014-09-10 17:36:14 CEST
+++ This bug was initially created as a clone of Bug #32415 +++ In several environments he saw Samba4 opened about 6 files per client-connection, where the default limit (ulimit) is always set to 1024. He had to increase the ulimits on most servers. a) Samba has its own mechanism to overwrite the limit: Bug #26277 b) r47352 is wrong: Note the double "user" - security/limits/user/.*/soft/nofile?'8192' \ - security/limits/user/.*/hard/nofile?'8192' \ + security/limits/user/default/user/soft/nofile?'8192' \ + security/limits/user/default/user/hard/nofile?'8192' \ ^^^^ ^^^^ The limit is currently not applied: # grep ^[^#] /etc/security/limits.conf @"Domain Users" hard nproc 1000 Fix: # python -c 'from univention.config_registry.frontend import ConfigRegistry, ucr_update;P="security/limits/user/default/";ucr_update(ConfigRegistry(), {P+"user/hard/nofile":None,P+"user/soft/nofile":None,P+"hard/nofile":"32768",P+"soft/nofile":"32768",})' # grep ^[^#] /etc/security/limits.conf default soft nofile 32768 default hard nofile 32768 @"Domain Users" hard nproc 1000
fixed the ucr default to + 'security/limits/default/user/soft/nofile'?'32768' \ + 'security/limits/default/user/hard/nofile'?'32768' merged to UCS 4.0 YAML: 2014-08-28-univention-pam.yaml
OK: r53119 r53132 OK: /usr/sbin/announce_errata -V 2014-08-28-univention-pam.yaml OK: ucr search --brief nofile OK: aptitude install '?source-package(univention-pam)?installed' OK: ulimit -n
http://errata.univention.de/ucs/3.2/192.html