在FreeBSD使用測試指令檢查Samba Config 是否有問題
# testparm
發現到問題的一行
Load smb config files from /usr/local/etc/smb.conf
max_open_files: sysctl_max (11095) below minimum Windows limit (16384)
rlimit_max: rlimit_max (11095) below minimum Windows limit (16384)
ERROR: pid directory /var/run/samba does not exist
Processing section "[printers]"
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
上網找了一下都是國外的網站解答找到原因
因為 Sever 中的 /var/run/samba 這個目錄不見了
所以只要下個指令就可以了
mkdir /var/run/samba
在重新啟動一下Samba Server 就可以了。
沒有留言:
張貼留言