Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to start the nmb service. It leaves this in the log file and exists:

[2013/05/08 14:06:23,  0] ../source3/nmbd/nmbd.c:883(main)
  nmbd version 4.0.0rc4 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2012
[2013/05/08 14:06:23,  0] ../source3/nmbd/nmbd.c:922(main)
  standard input is not a socket, assuming -D option
[2013/05/08 14:06:23,  0] ../source3/lib/util_sock.c:1253(create_pipe_sock)
  error creating socket directory /var/run/samba/nmbd: Permission denied
[2013/05/08 14:06:23,  0] ../source3/nmbd/nmbd_packets.c:48(nmbd_init_packet_server)
  ERROR: nb_packet_server_create failed: NT_STATUS_ACCESS_DENIED

Here is folder:

# ls -ldZ /var/run/samba/
drwxr-xr-x. root root system_u:object_r:smbd_var_run_t:s0 /var/run/samba/

This is odd:

# service nmb status
nmbd dead but pid file exists
# ls /var/run/samba/
ls: cannot access /var/run/samba/ No such file or directory

Any ideas?

share|improve this question

it is selinux bug , disable selinux for nmbd :

chcon -t unconfined_exec_t /usr/sbin/nmbd

or add rule for socket

semanage fcontext -a -t nmbd_var_run_t /var/run/samba/nmbd/unexpected
share|improve this answer
You may be able to improve this answer by adding the exact permission that needs to be granted to make SELinux work without sacrificing security. – Ladadadada Oct 14 '13 at 13:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.