LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1847|回复: 10

为什么Samba的SMB services总是FAILED?

[复制链接]
发表于 2006-9-23 00:57:12 | 显示全部楼层 |阅读模式
NMB services倒是可以启动,但是SMB services 就是不行,

会是什么原因呢?
发表于 2006-9-23 01:09:11 | 显示全部楼层
叫我怎么说呢?你这么问让别人怎么帮你?!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-23 01:49:59 | 显示全部楼层
我就是先 yum install samba-common
然后 yum install samba
然后 yum install samba-client
然后 yum install samba-swat

安装好samba后,

启动/etc/init.d/smb start
结果就是
SMB services [FAILED]

我就不知道了,是我什么地方没设置?还是别的什么? 请教
回复 支持 反对

使用道具 举报

发表于 2006-9-23 01:54:03 | 显示全部楼层
那你 /etc/samba/smb.conf 根本就还没设置过。

搜一下论坛,有很多关于 samba 设置的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-23 02:59:29 | 显示全部楼层

我把详细信息贴出来,请高手指点

[root@localhost gaowudi]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = MYOFFICE
        server string = Samba Server
        log file = /var/log/samba/%m.log
        max log size = 50
        dns proxy = No
        cups options = raw

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /usr/spool/samba
        printable = Yes
        browseable = No
[root@localhost gaowudi]# whoami
root
[root@localhost gaowudi]# vi /etc/smb.conf
[root@localhost gaowudi]# vi /etc/sm
smartd.conf  smrsh/
[root@localhost gaowudi]# vi /etc/samba/smb.conf
[root@localhost gaowudi]#
[root@localhost gaowudi]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = MYOFFICE
        server string = Samba Server
        log file = /var/log/samba/%m.log
        max log size = 50
        dns proxy = No
        wins support = Yes
        cups options = raw

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /usr/spool/samba
        printable = Yes
        browseable = No
[root@localhost gaowudi]# /etc/init.d/smb restart
Shutting down SMB services:                                [FAILED]
Shutting down NMB services:                                [  OK  ]
Starting SMB services:                                     [FAILED]
Starting NMB services:                                     [  OK  ]
[root@localhost gaowudi]#
回复 支持 反对

使用道具 举报

发表于 2006-9-23 07:39:23 | 显示全部楼层
贴出你的 /var/log/messages 相关部分及 /var/log/samba/smbd.log 的内容。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-23 22:33:45 | 显示全部楼层

/var/log/samba/smbd.log的东西如下, /var/log/messages 里的东西太多了不知取什么

[root@localhost gaowudi]# more /var/log/samba/smbd.log
[2006/09/23 00:53:56, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[2006/09/23 00:55:25, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[2006/09/23 01:09:39, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[2006/09/23 01:18:46, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[2006/09/23 01:20:29, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[2006/09/23 01:24:41, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[2006/09/23 01:47:03, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[2006/09/23 01:47:28, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[2006/09/23 03:20:19, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[2006/09/23 03:52:10, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[2006/09/23 03:55:53, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[2006/09/23 23:26:07, 0] smbd/server.c:main(847)
  smbd version 3.0.23a-1.fc5.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
smbd: symbol lookup error: smbd: undefined symbol: cupsLangDefault
[root@localhost gaowudi]#
回复 支持 反对

使用道具 举报

发表于 2006-9-23 23:05:14 | 显示全部楼层
yum update cups 后再试试。

http://www.linuxsir.cn/main/?q=node/158

学会有效地 google、搜索论坛。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-24 00:54:56 | 显示全部楼层
出来了,终于可以用了,多谢


不过奇怪的是
怎么说 smbmount 命令没有呢?
smbmount命令是另外要安装的??
回复 支持 反对

使用道具 举报

发表于 2006-9-24 00:58:19 | 显示全部楼层
复制我blog里面的内容给你:

fc5的smbmount换作由mount
Lage | Medium | Small
[不指定 2006/07/03 00:54 | by musheng ]
为什么啊?难道samba只是为了做服务器?

以下是转贴:
— Florida Gator @ 2006/05/11 14:57
Fedora core 5的smbclient 的RPM中已經沒有了smbmount這支程式了。事實上,smbmout就等於mount -t smbfs。所以沒有了也無所謂,只是在FC5 kernel 中也沒有將smbfs的support加入。所以,當打入
%mount -t smbfs -o username=xxx.password=xxx //hostname/dir /mnt/dir
mount: unknown filesystem type 'smbfs
就會出現上面的這行訊息
其實,是因為FC5現在改用 Common Internet File Systemcifs(cifs)取代了原有的smbfs,所以指令就必須改成

%mount -t cifs -o username=xxx.password=xxx //hostname/dir /mnt/dir


如果你還是習慣用smbmount,在/root/.bashrc 中加一行

alias smbmount='mount -t cifs'

即可

——————好像有问题——————
我是以root身份登陆的。所以打:
#mount -t cifs -o username=tom.passwd=tom //host/sharedocuments /mnt
可是需要我再次输密码。所以感觉还是应该这样:
#mount -t cifs -o username=tom%tom //host/sharedocuments /mnt
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表