Files shared via Samba are shown as folders - 4.11.6+dfsg-0ubuntu1.2

Bug #1902398 reported by jsquared
This bug report is a duplicate of:  Bug #1872476: Shared files are shown as folders. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Similar symptoms to Bug #1872476, however issues occur even with the patched version of the Samaba package (2:4.11.6+dfsg-0ubuntu1.2).

Ubuntu 20.04, Samba pkg 4.11.6+dfsg-0ubuntu1.2 (latest in repo)

[Symptoms]
 - When accessing Ubuntu-hosted Samba shares from MacOS, some files are represented as directories.
 - When accessing Ubuntu-hosted Samba shares from Windows, these same files are shown as directories, with a gray "X" over the folder icon.

[Scenario / steps to reproduce]
 - Clean install of Ubuntu 20.04
 - Install Samba package thru apt
 - Create Samba share pointing to folder on local filesystem
 - Access Samba share from MacOS machine
 - Observe that some or all files in the share are displayed as folders
 - Using Terminal on MacOS, cd-ing to the affected directory and running ls -al shows drwx, e.g. "drwxr--r--- 1 user group 2263221 Jul 21 2020 DSC_0524.JPG" despite DSC_0524.JPG being a file rather than a directory.
 - Copying any of these "files" to the MacOS machine's local filesystem will result in the file remaining a directory.

Curiously, I've observed the behavior on only certain directories within a given Samba share. For example, I have a "media" share on my NAS, with 3 directories - Movies, TV, and Photos. In this Samba share, only the Photos directory exhibits the bug in question, which affects all files in the root of Photos as well as any files in any subdirectories. However no files in the Movies and TV directories in the root of the Samba share are affected.

Also, this particular Samba share was running for approx 9 days before the bug took affect. No configuration changes were made (at least user-initiated ones) between normal operation and the issue starting.

Revision history for this message
jsquared (jeroldlewis) wrote :
jsquared (jeroldlewis)
description: updated
jsquared (jeroldlewis)
tags: added: regression-update samba
jsquared (jeroldlewis)
summary: - Files shared via Samba are shown as folders
+ 2:4.11.6+dfsg-0ubuntu1.2 - Files shared via Samba are shown as folders
summary: - 2:4.11.6+dfsg-0ubuntu1.2 - Files shared via Samba are shown as folders
+ Files shared via Samba are shown as folders - 4.11.6+dfsg-0ubuntu1.2
description: updated
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

This has been fixed.

Changed in samba (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.