SuSE 11.4 NetBIOS server will not start

Attempting to set up a Samba server. Using YaST–>System Services (Runlevel) to enable “nmb” results in the following:
/etc/init.d/nmb start returned 7 (program is not running):

From a terminal in su mode
#cd /etc/init.d
#./nmb start
Starting Samba NMB daemon startproc: exit status of parent of /usr/sbin/nmbd: 1 failed

Thank you in advance for your help.

Hmm … anything in the following logs right after you get the failure message?

/var/log/messages
/var/log/samba/log.smbd
/var/log/samba/log.nmbd

/var/log/messages
unremarkable

/var/long/samba/log.smbd

[2011/04/11 14:02:49, 0] lib/fault.c:250(dump_core_setup)
Unable to setup corepath for smbd: Permission denied
[2011/04/11 14:02:49, 0] smbd/server.c:1134(main)
smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/04/11 14:02:49.597742, 1] …/lib/util/params.c:513(OpenConfFile)
params.c:OpenConfFile() - Unable to open configuration file “/etc/samba/dhcp.conf”:
Permission denied
[2011/04/11 14:02:49.598346, 0] smbd/server.c:1149(main)
error opening config file

/var/log/samba/log.nmbd
[2011/04/11 14:05:03, 0] lib/fault.c:250(dump_core_setup)
Unable to setup corepath for nmbd: Permission denied
[2011/04/11 14:05:03, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/04/11 14:05:03.441319, 1] …/lib/util/params.c:513(OpenConfFile)
params.c:OpenConfFile() - Unable to open configuration file “/etc/samba/dhcp.conf”:
Permission denied
[2011/04/11 14:05:03.442434, 0] nmbd/nmbd.c:861(main)
error opening config file
[2011/04/11 14:05:36, 0] lib/fault.c:250(dump_core_setup)
Unable to setup corepath for nmbd: Permission denied
[2011/04/11 14:05:36, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/04/11 14:05:36.719509, 1] …/lib/util/params.c:513(OpenConfFile)
params.c:OpenConfFile() - Unable to open configuration file “/etc/samba/dhcp.conf”:
Permission denied
[2011/04/11 14:05:36.719811, 0] nmbd/nmbd.c:861(main)
error opening config file

Do those files exist in /etc/samba? If so, what are the permissions on them?

Also are you trying to just setup a SAMBA server, or a NetBIOS name server? Maybe you could try going through the YaST SAMBA server module … and see if it works then. I’m normally not a big fan of troubleshooting with GUI tools, but maybe doing this will help…

On Mon April 11 2011 04:36 pm, Parthenolide wrote:

>
> Attempting to set up a Samba server. Using YaST–>System Services
> (Runlevel) to enable “nmb” results in the following:
> /etc/init.d/nmb start returned 7 (program is not running):
>
> From a terminal in su mode
> #cd /etc/init.d
> #./nmb start
> Starting Samba NMB daemon startproc: exit status of parent of
> /usr/sbin/nmbd: 1 failed
>
> Thank you in advance for your help.
>
Parthenolide;

There is a problem with ApArmor and Samba. Go to:
Yast > Novell AppArmor > AppArmor Control Panel > Configure profiles
and set AppArmor to complain for both usr.sbin.nmbd and usr.sbin.smbd rather
than enforce.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Thanks venzkep. Your solution worked.

On Mon April 11 2011 06:06 pm, Parthenolide wrote:

>
> /var/log/messages
> unremarkable
>
> /var/long/samba/log.smbd
>
> [2011/04/11 14:02:49, 0] lib/fault.c:250(dump_core_setup)
> Unable to setup corepath for smbd: Permission denied
> [2011/04/11 14:02:49, 0] smbd/server.c:1134(main)
> smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.
> Copyright Andrew Tridgell and the Samba Team 1992-2010
> [2011/04/11 14:02:49.597742, 1] …/lib/util/params.c:513(OpenConfFile)
> params.c:OpenConfFile() - Unable to open configuration file
> “/etc/samba/dhcp.conf”:
> Permission denied
> [2011/04/11 14:02:49.598346, 0] smbd/server.c:1149(main)
> error opening config file
>
>
> /var/log/samba/log.nmbd
> [2011/04/11 14:05:03, 0] lib/fault.c:250(dump_core_setup)
> Unable to setup corepath for nmbd: Permission denied
> [2011/04/11 14:05:03, 0] nmbd/nmbd.c:857(main)
> nmbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.
> Copyright Andrew Tridgell and the Samba Team 1992-2010
> [2011/04/11 14:05:03.441319, 1] …/lib/util/params.c:513(OpenConfFile)
> params.c:OpenConfFile() - Unable to open configuration file
> “/etc/samba/dhcp.conf”:
> Permission denied
> [2011/04/11 14:05:03.442434, 0] nmbd/nmbd.c:861(main)
> error opening config file
> [2011/04/11 14:05:36, 0] lib/fault.c:250(dump_core_setup)
> Unable to setup corepath for nmbd: Permission denied
> [2011/04/11 14:05:36, 0] nmbd/nmbd.c:857(main)
> nmbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.
> Copyright Andrew Tridgell and the Samba Team 1992-2010
> [2011/04/11 14:05:36.719509, 1] …/lib/util/params.c:513(OpenConfFile)
> params.c:OpenConfFile() - Unable to open configuration file
> “/etc/samba/dhcp.conf”:
> Permission denied
> [2011/04/11 14:05:36.719811, 0] nmbd/nmbd.c:861(main)
> error opening config file
>
>
DID YOU CHANGE APARMOR!!!

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

On Mon April 11 2011 09:36 pm, Parthenolide wrote:

>
> Thanks venzkep. Your solution worked.
>
Parthenolide;

Glad you finally got it working. This is a known problem and there is a
Bugzilla report on the mater.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

Thanks had exactly the same problem after upgrading to 11.4 - your solution worked.:slight_smile:

Thank you!

I was with the same problem.

The solution worked perfect!