Failed to start Samba service

Solution Verified - Updated -

Issue

  • Samba service fails to start with the following error in logs.
  • The error indicates having wrong permission for location /var/lib/samba/private/msg.sock' and /var/log/samba/cores
[2021/11/24 04:51:49,  0] ../../lib/util/util.c:279(directory_create_or_exist_strict)
  invalid permissions on directory '/var/log/samba/cores': has 0755 should be 0700

[2021/11/24 04:51:49,  0] ../../source3/lib/dumpcore.c:60(get_default_corepath)
  Failed to create /var/log/samba/cores for user 0 with mode 0700

[2021/11/24 04:51:49.707163,  0] ../../lib/util/util.c:279(directory_create_or_exist_strict)
  invalid permissions on directory '/var/lib/samba/private/msg.sock': has 0775 should be 0700

[2021/11/24 04:55:17,  0] ../../lib/util/util.c:279(directory_create_or_exist_strict)
  invalid permissions on directory '/var/log/samba/cores': has 0755 should be 0700

[2021/11/24 04:55:17,  0] ../../source3/lib/dumpcore.c:60(get_default_corepath)
  Failed to create /var/log/samba/cores for user 0 with mode 0700

Environment

  • Red Hat Enterprise Linux 7

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