iT邦幫忙

0

架設samba的問題?

power1 2009-11-19 15:01:4310756 瀏覽

使用samba架設file server,此file server會加入網域成為網域的一份子,而帳號密碼統一由PDC控制,架設環境如下
OS:open suselinux11.2 64bit
samba版本:samba-3.4.2-1.1.3.1.x86_64
設定檔都設定OK後分別啓動
/etc/init.d/smb start =>完成
/etc/init.d/xinetd start =>完成
/etc/init.d/winbind start =>完成
/etc/init.d/nmb start => 失敗,並且顯示以下訊息
Starting Samba NMB daemon startproc: exit status of parent of /usr/sbin/nmbd: 1

同一時間去查看log檔,tail -f /var/log/messages所顯示的訊息如下
linux99 nmbd[4908]: [2009/11/19 14:47:22, 0] nmbd/nmbd.c:858(main)
linux99 nmbd[4908]: error opening config file

請問我那裡做錯了,為什麼nmb這個服務一直起不來

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

8
jiahuey
iT邦新手 1 級 ‧ 2009-11-19 18:50:17
最佳解答

您設定 smb.conf 之後是否再跑一下 testparm smb.conf 確認過所有設定呢?
另外也可以查一下 /var/log/samba/ 底下是否有可用的訊息。

看更多先前的回應...收起先前的回應...
power1 iT邦新手 2 級 ‧ 2009-11-19 19:06:53 檢舉

cat /var/log/samba/log.nmbd 內容如下
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/11/19 15:57:28, 0] nmbd/nmbd.c:858(main)
error opening config file

cat /var/log/samba/smbd 內容如下
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/11/19 16:33:43, 0] smbd/server.c:1080(main)
error opening config file

cat /var/log/samba/log.winbindd內容如下
winbindd version 3.4.2-1.1.3.1-2229-SUSE-SL11.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/11/19 15:55:33, 0] winbindd/winbindd.c:1248(main)
error opening config file

由以上的log看起來都是顯示同樣的訊息

power1 iT邦新手 2 級 ‧ 2009-11-19 19:15:42 檢舉

至於testparm smb.conf所顯示出來的訊息如下Load smb config files from smb.conf
Can't find include file /etc/samba/dhcp.conf
Processing section "[homes]"
Processing section "[program]"
Processing section "[misc]"
Processing section "[tmp]"
Loaded services file OK.
'winbind separator = +' might cause problems with group membership.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions

看起來是我的設定檔有問題

jiahuey iT邦新手 1 級 ‧ 2009-11-20 12:23:33 檢舉

"Can't find include file /etc/samba/dhcp.conf"
這應該是主要訊息提醒的重點。

"winbind separator = +"
這個倒是還好,預設是 "/",萬一有問題還是改回預設值吧。

jiahuey iT邦新手 1 級 ‧ 2009-11-20 12:26:05 檢舉

不好意思,"winbind separator = +" 的預設應該是 "\" ,手誤。8-Q

power1 iT邦新手 2 級 ‧ 2009-11-20 16:47:02 檢舉

/etc/samba/dhcp.conf這個檔案我確實沒有,因為samba我是重新安裝的為什麼會缺少這一個檔案,不然我要去那裡產生這個一個檔案

jiahuey iT邦新手 1 級 ‧ 2009-11-24 10:12:59 檢舉

您的系統裡如果沒有使用到 dhcp,這一個檔案就不是必須出現在 samba 的組態檔裡。如同樓下的同學所說,可以移除,或是僅僅把他先遮蔽掉試試看。

power1 iT邦新手 2 級 ‧ 2009-11-25 18:35:09 檢舉

我這裡有個疑問,我在操作時依順啓動smb xinetd winbind nmb,在啓動前三個都是正常啓動,但是在啓動nmb才出現失敗,是不是nmb的問題?

6
sl6xx
iT邦研究生 5 級 ‧ 2009-11-23 12:36:16

dhcp.conf應該是dhcp server的設定檔案吧。而且正常的狀況下,dhcp.conf應該會擺在/etc底下。samba的設定檔是可以include其他的檔案沒錯,但是怎麼會把dhcp server的設定檔include進來呢?先把smb.conf裡面include=/etc/samba/dhcp.conf這一行刪除吧。

我要發表回答

立即登入回答