On 2019-05-22, Stephane HUC "PengouinBSD" <b...@stephane-huc.net> wrote: > > Hi, all. > > How resolve 'rlimit' in Samba on OpenBSD 6.5? > > $ testparm > > rlimit_max: increasing rlimit_max (512) to minimum Windows limit (16384) > Load smb config files from /etc/samba/smb.conf > rlimit_max: increasing rlimit_max (512) to minimum Windows limit (16384) > (...) > > However: > $ grep kern.maxfiles /etc/sysctl.conf > kern.maxfiles=16384 > $ tail -n8 /etc/login.conf > samba:\ > :openfiles=1024:\ > :openfiles-max=16384:\ > :tc=daemon: > (...) > > Machine rebooted after! > > One idea?
It could be inheriting openfiles-cur from another class (daemon/default). I would set openfiles-max and openfiles-cur not openfiles.