View Issue Details

IDProjectCategoryView StatusLast Update
0006419CentOS-6sambapublic2013-09-27 13:04
Status resolvedResolutionfixed 
Product Version6.4 
Target VersionFixed in Version6.4 
Summary0006419: nmbd dies at startup
DescriptionSamba-3.6.9-151.el6.x86_64 on CentOS 6.4. At system startup or with service(8) Samba appears to start, but nmbd dies instantly with the log message 'error creating socket directory /var/nmbd: Permission denied'.
Steps To Reproduce# service nmb start
Stating NMB services: [ OK ]
# service nmb status
nmbd dead but pid file exists
# tail /var/log/samba/log.nmbd
Additional InformationThere is a new build option in Samba 3.6:

# smbd -b | grep NMB
   NMBDSOCKETDIR: /var/nmbd

I'm guessing that the CentOS build is not setting this option and it's getting a default from the Samba source. Unfortunately it's a bad default: random programs are not supposed to create directories directly under /var. According to Samba's own Bugzilla ( the intent of this option was to use PREFIX/var/nmbd but I'm not sure what a good prefix would be. I would have thought something under /var/run or /var/lib/samba where the existing lock and state data are kept would be more appropriate.
TagsNo tags attached.




2013-04-26 08:53

reporter   ~0017317

Last edited: 2013-04-26 11:05

View 2 revisions

This was fixed by an SELinux update.

[edited so the hyperlink works]



2013-04-26 11:05

manager   ~0017319

Marking as SOLVED per reporters feedback

Issue History

Date Modified Username Field Change
2013-04-25 14:28 MorayH New Issue
2013-04-26 08:53 MorayH Note Added: 0017317
2013-04-26 11:05 tigalch Note Edited: 0017317 View Revisions
2013-04-26 11:05 tigalch Note Added: 0017319
2013-04-26 11:05 tigalch Status new => resolved
2013-04-26 11:05 tigalch Fixed in Version => 6.4
2013-04-26 11:05 tigalch Resolution open => fixed