Linux – nmb: unrecognized service when installing Samba

centoslinuxsamba

I've followed these steps to install Samba on my CentOS package. However, when I try to run chkconfig --level 345 nmb on, I get a nmb: unrecognized service error.

I tried service nmb status and service nmb restart with the same error message returning.

There doesn't seem to be anything regarding this, what's wrong? Why do I not have nmb installed, and how can I get it installed?

Best Answer

On a CentOS 5.8 system I have (like the one you are using), it appears that the smb and nmb services are managed together through the /etc/init.d/smb file

service smb start
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]

Whereas on a CentOS 6.3 system they are managed as separate services. So your

chkconfig --level 345 smb

will also have configured nmb.

I don't know why the page you reference says to use the separate services. The RHEL 5 deployment guide(21.2.1) says nmb is controlled by smb whereas the the RHEL 6 deployment guide (17.1.2.1) says they are separate services.