05 八月, 2016 06:32
解決測試 Samba Server 設定檔時出現的提示訊息
由 《未設定暱稱》 發表於 [ CentOS , Samba ][ (1) 迴響 ] [ (0) 引用 ] [ (1646) 閱讀 ] [ (0)

在使用 testparm 測試 Samba Server 設定檔時會出現如下的提示訊息
# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
修改 /etc/security/limits.conf 設定檔
# vim /etc/security/limits.conf
加入下面一行
* - nofile 16384

重新啟動電腦後,就不會再出現了!
# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
這是一則悄悄話