Problem description:
1. An error occurred while starting SMB. The prompt is as follows:
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. system logs are printed as follows:
Bogon:/etc/init. d # tail/var/log/messages
Oct 15 21:07:46 bogon smbd [28170]: [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]: [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]: [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]: [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]: [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
This problem has been around for a long time, and Du Niang cannot find a solution. Finally, Google went to the opensuse forum to find someone mentioned it. This was caused by a bug.
The link is as follows:
Http://forums.opensuse.org/english/get-technical-help-here/applications/455514-samba-broken-after-update-11-4-64-bits.html
Based on the post content, stopping apparmor should solve the problem. This method is feasible after trial.
How to stop apparmor:
Go to "apparmor control pannel" and disable the default settings.
You can enter apparmor in the beginning of xwindows to search for "apparmor control pannel". opensuse is a good tool.