Open SuSE11.4 Bug 导致samba启动失败

 问题描述:

1、启动smb失败,提示如下:
bogon:/etc/samba # vi smb.conf
bogon:/etc/samba # service smb restart
Shutting down Samba SMB daemon  Warning: daemon not running.                                  done
Starting Samba SMB daemon                                                                     done
bogon:/etc/samba # service smb restart
Shutting down Samba SMB daemon  Warning: daemon not running.                                  done
Starting Samba SMB daemon                                                                     done

2、系统日志中有如下打印:

bogon:/etc/init.d # tail /var/log/messages
Oct 15 21:07:46 bogon smbd[28170]: [2011/10/15 21:07:46.165683,  0] passdb/secrets.c:73(secrets_init)
Oct 15 21:07:46 bogon smbd[28170]:   Failed to open /etc/samba/secrets.tdb
Oct 15 21:07:46 bogon smbd[28170]: [2011/10/15 21:07:46.166310,  0] smbd/server.c:1234(main)
Oct 15 21:07:46 bogon smbd[28170]:   ERROR: smbd can not open secrets.tdb
Oct 15 21:07:48 bogon smbd[28180]: [2011/10/15 21:07:48.487406,  0] passdb/secrets.c:73(secrets_init)
Oct 15 21:07:48 bogon smbd[28180]:   Failed to open /etc/samba/secrets.tdb
Oct 15 21:07:48 bogon smbd[28182]: [2011/10/15 21:07:48.493825,  0] passdb/secrets.c:73(secrets_init)
Oct 15 21:07:48 bogon smbd[28182]:   Failed to open /etc/samba/secrets.tdb
Oct 15 21:07:48 bogon smbd[28182]: [2011/10/15 21:07:48.494240,  0] smbd/server.c:1234(main)
Oct 15 21:07:48 bogon smbd[28182]:   ERROR: smbd can not open secrets.tdb

这个问题折腾了哥好久,度娘上根本找不到解决办法,最后Google到opensuse论坛上去,才发现有人提到了,这是个Bug导致。

链接如下:

http://forums.opensuse.org/english/get-technical-help-here/applications/455514-samba-broken-after-update-11-4-64-bits.html

根据帖子的内容,停掉AppArmor应该可以解决问题。经过尝试,此法可行。

停止AppArmor的方法:

进入“AppArmor Control Pannel”,把默认的启用停掉即可。

可以直接在Xwindows下的开始中输入AppArmor就能搜索到“AppArmor Control Pannel”了,OpenSuSE这一点倒做的挺不错。

 

 

 

你可能感兴趣的:(Google,service,SuSE)