Directories and filenames ending with a special character exported from a Windows SMB/CIFS Server are not recognized by a Red Hat Enterprise Linux 7 SMB/CIFS Client

Solution Verified - Updated -

Issue

Directories and filenames ending with a special character exported from a Windows SMB/CIFS Server are not recognized by a Red Hat Enterprise Linux 7 SMB/CIFS Client. Typically, a No such file or directory message is returned when the problematic directory or file is accessed. On the Red Hat Enterprise Linux 7 SMB/CIFS Client, the shared directory is visible, but the contents of the directory are not visible.

How the issue manifests itself in different environments:

  • In the Windows Explorer GUI interface, the special character appears as a bullet point at the end of the folder or file name. This directory and its contents can be viewed normally on the Windows Server.

  • In a Red Hat Enterprise Linux 7 terminal session, the character appears as a dot. When attempting to cd into the directory, the message No such file or directory is returned, or sometimes, the directory is accessible but the contents are not visible.

  • In a CentOS 6.8 terminal session, the character appears as a ) and you can navigate into the directory and view its contents.

Environment

  • Red Hat Enterprise Linux 7 SMB/CIFS Client
  • Windows SMB/CIFS Server

This issue was encountered on a Red Hat Enterprise Linux 7 SMB/CIFS Client used for archiving. No errors were reported by the archive software, but the system administrator discovered that the contents of archive folders, which included special character in their name(s), were missing.

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