Operating System - HP-UX
1822147 Members
3970 Online
109640 Solutions
New Discussion юеВ

samba keeps changing the file case from mixed to lower or upper case

 
Mark Vollmers
Esteemed Contributor

samba keeps changing the file case from mixed to lower or upper case

Hi, all. I've got something that I'm stumped over. I have a bunch of files (.pdf) on a CD, along with some web pages that call them. I copied the CD from my NT machine to the server, mounted through SAMBA. The file names are mixed case (FILENAME.pdf, Filename, etc). The server is coping them to all caps (it was doing no caps). either way, when I go to search the directory through my intranet (which calls the index.htm file), it won't find the files becuase of the case issue. If I copy the cd to my hard drive and reference my page to it, everything works fine (although the broser still lists the name in all caps in the address bar, it is in mixed if I look at the file in the explorer). everyone lost yet? I chagned the config in samba to have case sensitive to yes, preserve case to yes, and mangle case to yes. when I first copied them, it worked, but samba must have changed everything to lower case, and now it likes upper case. how do I get it to keep the mixed case? Thanks.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
5 REPLIES 5
Mark Vollmers
Esteemed Contributor

Re: samba keeps changing the file case from mixed to lower or upper case

after a little digging, I'm all confused. I set the case settings in samba to default (no case sensitive, yes preserve case, no mangle case). I cannot find the default case setting, but it should be lower anyway.

I copied the cd to the mounted directory. it appears in windows in mixed case. It appears in UNIX in all caps. I go to the broswer, and it doesn't work. I click on the .htm file on the cd, and the address names are in all caps.

so i have a cd that wants to play in caps but shows up in window in mixed. it copies to unix in caps, but windows still wants to play in mixed. if I go to a broswer in unix, it pulls the file names in caps, but the .pdf extension is in lower, so that doesn't work either. what am I missing here?

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Uday_S_Ankolekar
Honored Contributor

Re: samba keeps changing the file case from mixed to lower or upper case

Hello Mark,

Did you try with case sesitive=yes option in smb.conf file?

If you are mounting the cd in unix box usually you can give with "cdcase" option while mounting CD.

If you can try with case sensitive option in smb.conf file that might help

Goodluck,
-USA..
Good Luck..
Mark Vollmers
Esteemed Contributor

Re: samba keeps changing the file case from mixed to lower or upper case

Uday-

I havn't tried copying it in Unix, mainly cause I've got a bunch of them and it's easier in NT as opposed to running up to the server, mounting the cd, copying it, unmounting, etc. however, I suppose that I'll have to give that a shot. I also had set it to yes, but it didn't work.

One last thing. I just set it case senstive and re-copied the cd. in nt, still mixed. in unix, all caps. however, netscape(unix) still switches the case of the extension to lower when it looks for a file and doesn't open (browsing in netscape through the file struture shows upper case extensions). Is this normal? the cd uses upper case extensions itself, but the html in the file references upper case name, lower case extension. Mainly, it seems like unix is doing it right but netscape is wrong (extensions). Also, NT shows it in mixed but it is upper, but IE is actually looking for it in mixed.

My head hurts.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Uday_S_Ankolekar
Honored Contributor

Re: samba keeps changing the file case from mixed to lower or upper case

Hi,

Default for case sensitive is no.

There is one more option called "default case=upper/lower" that controls the default case for new file name .Default here is Lower.

For Preserve case default is yes.

One more thing you might want to look at is..

"short preserve case = yes/no" controls if new files which conform to
8.3 syntax, that is all in upper case and of suitable length, are
created upper case, or if they are forced to be the "default" case.
This option can be use with "preserve case = yes" to permit long
filenames to retain their case, while short names are lowered. Default
Yes.

By default, Samba 2.0 has the same semantics as a Windows NT server,
in that it is case insensitive but case preserving.

Or else use pfs_mount in unix.

pfs_mount &
pfsd &
mount -F cdfs -r -o cdcase /dev/dsk/devname /cdrom
-USA..
Good Luck..
Mark Vollmers
Esteemed Contributor

Re: samba keeps changing the file case from mixed to lower or upper case

I never quite got it fiugred out right. the browser kept looking for something different than both NT and UNIX stored (NT had the UNIX name, but showed a different case). bottom line, I went and renamed all extensions so that they were lower case, and now it works. Oh, well.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"