Samba service failed with error "directory_create_or_exist: mkdir failed on directory /run/samba/ncalrpc: No such file or directory"

Solution Verified - Updated -

Issue

  • samba service unable to start
  • Failure to start smb.service with below errors
May 12 09:53:01 server.local smbd[21126]: [2022/05/12 09:53:01.244096,  0] ../../lib/util/util.c:208(directory_create_or_exist)
May 12 09:53:01 server.local smbd[21126]:   directory_create_or_exist: mkdir failed on directory /run/samba/ncalrpc: No such file or directory
May 12 09:53:01 server.local smbd[21126]: [2022/05/12 09:53:01.244378,  0] ../../source3/smbd/server.c:2074(main)
May 12 09:53:01 server.local smbd[21126]:   Failed to create pipe directory /run/samba/ncalrpc - No such file or directory
May 12 09:53:01 server.local systemd[1]: smb.service: main process exited, code=exited, status=255/n/a
May 12 09:53:01 server.local systemd[1]: Failed to start Samba SMB Daemon.

Environment

  • Red Hat Enterprise Linux 7
  • Samba

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content