← Back to team overview

enterprise-support team mailing list archive

[Bug 1902398] [NEW] Files shared via Samba are shown as folders

 

Public bug reported:

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

[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 not shown at all.


[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.

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "smb2.jpg"
   https://bugs.launchpad.net/bugs/1902398/+attachment/5429898/+files/smb2.jpg

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to samba in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1902398

Title:
  Files shared via Samba are shown as folders

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1902398/+subscriptions


Follow ups