[Samba] samba-tool ntacl sysvolcheck -> Too many open files
L.P.H. van Belle
belle at bazuin.nl
Mon Apr 30 07:01:07 UTC 2018
> 16384 16384 files
>
> However, if I run samba-tools ntacl sysvolcheck or reset,
> they are using system default (Soft Limit 1024) and
> sysvolcheck failed (not sysvolreset)
>
> A quick solution is to run "ulimit -n 16384 && samba-tool
> ntacl sysvolcheck"
> A deeper solution will be to play with
> /etc/security/limits.conf or other....
>
In addiction to above, there are some systemd systems which might not use the /etc/security/limits.conf correctly.
For these, edit the systemd service file(s)
systemctl edit name.service ( which created the override file in /etc/systemd/system/name.service.d/override.conf _
systemctl edit --full name.service ( which created the copy of the file in /etc/systemd/system/ )
And add whats needed.
[Service]
LimitNOFILE=8192:16384
This is handy to have.
More information about the samba
mailing list