Bug 13909 - Removing logging folder prevents clients from connecting
Summary: Removing logging folder prevents clients from connecting
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.9.6
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-23 11:31 UTC by Ryan Launchbury
Modified: 2019-05-01 12:02 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Launchbury 2019-04-23 11:31:01 UTC
If the Samba logging folder is removed, new clients cannot connect. For example:
log file = /var/log/samba/log-%M.smbd

Test:
Remove '/var/log/samba/'

Expected result:
Folder is created and client can connect.

Actual result:
Folder not created, and client cannot connect.
Comment 1 Amit Kumar 2019-05-01 06:32:29 UTC
Hello Ryan,
I can connect from new windows clients(win2012) as well to samba-4.8.6.
This is my smb.conf
  [global]
    workgroup = WORKGROUP
    security = user
    passdb backend = tdbsam
    log level = 9
    log file = /var/log/samba-test-log/log-%M.smbd
  [myshare]
    path = /share
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0755

if /var/log/samba-test-log/ is not present. samba writes logs inside /var/log/samba/ folder.

1. Which version of samba you are using?
2. Can you provide your smb.conf and check with above smb.conf?
Comment 2 Ryan Launchbury 2019-05-01 12:02:11 UTC
Hi Amit,

The issue was when the '/var/log/samba/ folder was deleted.
I'm currently running 4.9.6 and cannot reproduce, so am marking this as resolved.

Best,
Ryan