testparm 检测 samba 配置时,会提示设置 rlimit_max

$ testparm

Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)

设置方法

修改 /etc/security/limits.conf 文件,添加一行:

$ sudo nano /etc/security/limits.conf

...
*               -       nofile          16384
# End of file
...