Samba file names

Posted on 2004-10-25
Last Modified: 2010-04-20
I have funny file names comming up on my Samba (on FD 2) when seen from within my application.

Files like OE#INKRS.dat should show up in the DOS Accpac application as the name after the #. So it should be INKRS but it shows up as 8AB~I and when I use explorer to look for this, there is no such file around. This happens whenever I have to select a report name or import file (in other words access the file system) from withing Accpac.

So where does this funny file name come from?

My workstations are XP or Win98.

Question by:alexangus
    LVL 23

    Accepted Solution

    See this explanation on filename mangling in Samba:


    Author Comment

    The file names all follow the 8.3 naming convention and are created by the application which was originally designed for Novell networks then adapted for Windows but kept the DOS naming. So this is pure DOS and I am aware of long file names in a dos environment.
    But this is something else I have never seen in my 30 odd years in IT. Then again I have been in the mainframe, Novell & Microsoft sector and am new to Linux and only once toughed a Unix machine.

    I am certainly new to Linux/Samba and am having some strange things happen with this Samba server on Fedora 2. My last one I did was RH 7.3 about 2 years ago and that worked like a dream and did not have all these funnies.
    How does it change a file name of OE#INKRS to 8AB~I ? Does the # in the 3rd position have anything to do with it? If so why does the Samba on RH 7.3 work fine?

    Author Comment

    Did further tests and have the situation where I have the funny file names from 4 PC's but not from the main PC where I originally copied the application from.

    The main PC also runs the applications fine but the other systems will not run applications correctly as the file names are wrong. Why is everything fine on the main PC. Is this something to do with ownership of the files, therefore everything fine from the one main PC that was the source of the application and data?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    The Complete Ruby on Rails Developer Course

    Ruby on Rails is one of the most popular web development frameworks, and a useful tool used by both startups and more established companies to build strong graphic user interfaces, and responsive websites and apps.

    Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now