Click to See Complete Forum and Search --> : weird samba case sentitivity problem


itris
07-18-2002, 03:48 PM
hi all,

I'm not really a linux newbie but this problem has me baffled..
I have 2 redhat 7.3 machines, one running the samba server, the other functioning as a client.
The server has
short preserve case = yes
case sensitive = yes
preserve case = yes

[testnetmount]
path = /mnt/seagatereiser
writable = yes
short preserve case = yes
preserve case = yes
case sensitive = yes


the client smb.conf:
preserve case = yes
short preserve case = yes
case sensitive = yes

the client connects to the server like such:
/bin/mount -t smbfs -o username=xxxxxx,password=xxxxxx //xxx.xxx.xxx.xxx/testnetmount /mnt/testnet


this all works just fine.
I can edit, read, etc files without problem.

BUT...

the dir listing on the server:

root@server /mnt/seagatereiser >>$ ls -la
drwxr-xr-x 4 root root 216 Jul 18 20:57 .
drwxr-xr-x 5 root root 1024 Jul 4 12:58 ..
-rwxr--r-- 1 root root 20971520 Jul 18 20:53 bin
drwxr-xr-x 2 root root 48 Jul 18 20:57 BIN
-rw-r--r-- 1 root root 5 Jul 18 20:36 test
-rwxr--r-- 1 root root 4 Jul 18 20:30 Test

and on the client:
root@client /mnt/testnet >>$ ls -la
drwxr-xr-x 1 root root 4096 Jul 18 20:57 .
drwxr-xr-x 4 root root 1024 Jul 18 20:28 ..
-rwxr-xr-x 1 root root 20971520 Jul 18 20:53 bin
-rwxr-xr-x 1 root root 20971520 Jul 18 20:53 BIN
-rwxr-xr-x 1 root root 5 Jul 18 20:36 test
-rwxr-xr-x 1 root root 5 Jul 18 20:36 Test


why doesn't samba realise that BIN is a dir and bin is a file?
Why doesn't sambe realise that test!=Test ?

and most importantly... how do I fix this?

thank you very much for your help on this!

jaygee432
07-18-2002, 04:23 PM
Are you trying to connect the two RH machines using samba, or did you leave something out? You need NFS for linux to linux file sharing.

cowanrl
07-18-2002, 09:20 PM
I would say your problem probably lies in the fact that both a directory and a file have the same name.
In linux, bin and BIN are different file names. In Windows, bin and BIN are the same file name. In Windows, if you tried to create a directory named BIN in a directory that already contained a file named bin, you'd get an error message and wouldn't be able to do it.
Don't forget, when accessing a Samba share from a Linux computer, it's just like a Windows computer accessing a Windows computer.

Try changing the name of the file bin to something else and see if BIN shows up as a directory.