Univention Bugzilla – Bug 27709
Angabe von "-" an Stelle von "hard"/"soft" in /etc/security/limits.conf Template
Last modified: 2012-07-20 15:25:07 CEST
Aufgefallen am Ticket#2012061821001607 Bei UCS-3.x Samba-Memberservern unter hoher Last müssen die ulimit-Werte sowohl für die Benutzer als auch für root über die limits-Einstellungen hochgesetzt werden. Das zugehörige Template akzeptiert jedoch nur "soft" oder "hard". Schön wäre es, wenn auch ein "-" akzeptiert werden würde. Dann könnten die Werte mit ucr set 'security/limits/user/root/-/nofile=16384' ucr set 'security/limits/user/*/-/nofile=16384' gesetzt werden.
CONFIRMED: man limits.conf <type> -: for enforcing both soft and hard resource limits together. # dpkg -S /etc/univention/templates/files/etc/security/limits.conf univention-pam
Created attachment 4459 [details] Allow - as limits type
# Vorher: ucr set 'security/limits/user/*/-/nofile=16384' cat /etc/security/limits.conf # Illegal variable "security/limits/user/*/-/nofile" # <type> must be "soft" or "hard", not "-" # Nachher: * - nofile 16384 svn33720, univention-pam_5.0.19-1.178.201206222009 ChangeLog: svn13610 \item Hard and soft limits in \ucsFile{/etc/security/limits.conf} can now be specified together using the '-' type (\ucsBug{27709}).
Auf meinem UCS 3.0-1 errata 91 war genau das von Philipp angesprochene Paket installiert: dpkg -l univention-pam ii univention-pam 5.0.19-1.178.201206222009 Dabei verhielt sich das System genau wie nach Philipps Beschreibung erwartet: ucr set 'security/limits/user/*/-/nofile=16384' Create security/limits/user/*/-/nofile File: /etc/security/limits.conf tail -5 /etc/security/limits.conf # <domain> <type> <item> <value> * - nofile 16384 @"Domain Users" hard nproc 1000 # End of file
UCS 3.0-2 has been released: http://forum.univention.de/viewtopic.php?f=54&t=1905 If this error occurs again, please use "Clone This Bug".