LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-12-2004, 08:43 AM   #1
Phaethar
Member
 
Registered: Oct 2003
Location: MN
Distribution: CentOS, Fedora
Posts: 182

Rep: Reputation: 30
Samba and DOS directory names


Hey all,

Having some trouble getting Samba to properly display directory names for a DOS machine. Basically, I have a few old DOS 6.2 boxes mapped to a Samba box to drop some files into. The folder name on the Samba box is filerouter. Under the normal DOS filename structure, I would assume the name would be adjusted to filerou~1, or something similar, to fit with the 8.3 standard. Instead, I'm getting something very strange like FF8DZ9~C. I've been trying to find out if there is any way I can control this, or get Samba to properly display the directory name under DOS, but so far I haven't had much luck. I did try playing around a bit with the 'mangled names' option in the smb.conf file. If I force mangled names to be turned off, then I can't see any folders at all unless I create them from DOS. Although when I do it that way, I get something like FILEROUT as the name, with no tilde character. We have a bunch of scripts set up looking for the folder name to include the ~ in the path, so I'm hoping there is a way to get this set up properly. Anyone have any advice?

BTW, the Linux box is running Fedora Core 1 with all the latest updates installed.

Thanks.
 
Old 04-12-2004, 09:30 AM   #2
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Samba dosen't store files with 8.3 name standard but creates the names dynamically when clients connect.
You can configure how Samba should create names.
mangled names = Yes
turns on 8.3 name format which should be default setting.

Linux only adds a ~ when there are duplicates of the file/directory name. Think this is the way DOS works as well.
 
Old 04-12-2004, 09:48 AM   #3
Phaethar
Member
 
Registered: Oct 2003
Location: MN
Distribution: CentOS, Fedora
Posts: 182

Original Poster
Rep: Reputation: 30
Hey Ugge,

I was under the impression that mangled names was already enabled by default, which is partially why I'm getting this strange, cryptic folder listing. I did manually put it in my smb.conf file though, and I'm still getting the same results. That is, when looking at the folder listing from the Linux box itself, or from a Windows box, the folder name shows up as Filerouter. When I look at the folder name from a DOS box using the DIR command, it shows up as FF8DZ9~C. So, it is truncating it down to 8 characters.. it's just not keeping any of the original name. Instead, it's assigning it some completely different name. I don't see how this could be used if I had more than 1 or 2 folder that had names longer than 8 characters, as I'd never know which folder was which.

So, all I'm really hoping to do is keep the folder name the same so my non-DOS machines can still see it, but also have the DOS boxes see it properly as well with a shorter name.

Thanks.
 
Old 04-12-2004, 10:09 AM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
This doesn't have something to do with character encoding?
Have no idea how that would be solved though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do file names keep getting changed to dos 8.3 format on my usb drive? firehawk256 Linux - Newbie 1 02-25-2005 03:32 PM
What do the directory names stand for jken Linux - General 4 08-26-2004 07:26 AM
directory-names with spaces... Schmurff Linux - Newbie 2 03-07-2004 11:06 AM
CD Burner names all files and directory ??? danny_beta_read Linux - Hardware 11 03-04-2004 06:24 PM
SAMBA: display of share names is OK but files names are wrong superandrzej Linux - Software 5 02-02-2004 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration