Discussion:
Accented characters not working with CIFS (but ok with smbclient)
adcromitus
2014-09-20 22:44:57 UTC
Permalink
Hy,

I'm not sure of what can be relevant so I'll tell the whole story.

I have a router (that I got from my ISP) which allows the connection of=
=20
a pen/HDD by USB. That pen is shared on the network as a Windows Share=20
folder.

In Windows 7 I can see all the files name correctly, but when I mount=20
the drive in Linux, with the command:

mount -t cifs //<local share ip-address>/<shared-folder> --verbose -o=20
user=3Duser,pass=3D"",uid=3D1000,gid=3D1000

(there is no password)

All file names with special characters (like =C3=87=C3=A3=C3=B5=C3=A9..=
=2E) have a question=20
mark in place of the accented character and I can't open the file or=20
folder, as any command responds the file doesn't exist. This happens in=
=20
dolphin, thunar and in the command line with simple commands like cat.

I tried adding the following option without success

iocharset=3Dutf-8
iocharset=3Dutf-8,codepage=3Dcp437
iocharset=3Dutf-8,codepage=3Dcp850
iocharset=3Diso8859-1

This also happens if I access the share from my android device, so I wa=
s=20
convinced it was a problem related to old firmware (from the router).

However, recently I connected to the drive using smbclient and the file=
=20
names appeared correctly. I would like to mount this share folder at=20
fstab, and so smbclient is not a good solution.

I'm using:
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5

And I get this information from smbclient -L <local share ip address>:
(smbclient version 4.1.11-Debian)
Server=3D[Samba 2.2.12]

So. Is there something else I can try?

Thanks in advance.
Steve French
2014-09-22 03:28:47 UTC
Permalink
This seems strange because modern Linux distributions should map UCS-2
(16 bit Unicode characters which cifs servers like Windows and Samba
send over the wire) fine to UTF-8 which is the typical default one for
local.

Does you distro not default to UTF-8 on the client?

Would be helpful to see a wire trace (ethereal or tcpdump) and make
sure the server is sending UCS-2 (Unicode) on the wire. See
https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting
Post by adcromitus
Hy,
I'm not sure of what can be relevant so I'll tell the whole story.
I have a router (that I got from my ISP) which allows the connection =
of a
Post by adcromitus
pen/HDD by USB. That pen is shared on the network as a Windows Share =
folder.
Post by adcromitus
In Windows 7 I can see all the files name correctly, but when I mount=
the
Post by adcromitus
mount -t cifs //<local share ip-address>/<shared-folder> --verbose -o
user=3Duser,pass=3D"",uid=3D1000,gid=3D1000
(there is no password)
All file names with special characters (like =C3=87=C3=A3=C3=B5=C3=A9=
=2E..) have a question mark
Post by adcromitus
in place of the accented character and I can't open the file or folde=
r, as
Post by adcromitus
any command responds the file doesn't exist. This happens in dolphin,=
thunar
Post by adcromitus
and in the command line with simple commands like cat.
I tried adding the following option without success
iocharset=3Dutf-8
iocharset=3Dutf-8,codepage=3Dcp437
iocharset=3Dutf-8,codepage=3Dcp850
iocharset=3Diso8859-1
This also happens if I access the share from my android device, so I =
was
Post by adcromitus
convinced it was a problem related to old firmware (from the router).
However, recently I connected to the drive using smbclient and the fi=
le
Post by adcromitus
names appeared correctly. I would like to mount this share folder at =
fstab,
Post by adcromitus
and so smbclient is not a good solution.
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
And I get this information from smbclient -L <local share ip address>=
(smbclient version 4.1.11-Debian)
Server=3D[Samba 2.2.12]
So. Is there something else I can try?
Thanks in advance.
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs"=
in
Post by adcromitus
More majordomo info at http://vger.kernel.org/majordomo-info.html
--=20
Thanks,

Steve
adcromitus
2014-09-27 23:23:05 UTC
Permalink
Hello again,

Sorry for the long time to reply.

I've been going around on how to do this. I set up Wireshark and saw
what the server was transmitting. However I'm not really sure about what
I should send here.

Anyway I did a "ls" on a dir with a file named "Coleção", and wireshar
captured "cole \247 \243o". I send a few frames from tcpdump where that
happens.

How can I see if my distro defaults to UTF-8 on the client?

I'm using:
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5


Thanks in advance.
Post by Steve French
This seems strange because modern Linux distributions should map UCS-2
(16 bit Unicode characters which cifs servers like Windows and Samba
send over the wire) fine to UTF-8 which is the typical default one for
local.
Does you distro not default to UTF-8 on the client?
Would be helpful to see a wire trace (ethereal or tcpdump) and make
sure the server is sending UCS-2 (Unicode) on the wire. See
https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting
Post by adcromitus
Hy,
I'm not sure of what can be relevant so I'll tell the whole story.
I have a router (that I got from my ISP) which allows the connection of a
pen/HDD by USB. That pen is shared on the network as a Windows Share folder.
In Windows 7 I can see all the files name correctly, but when I mount the
mount -t cifs //<local share ip-address>/<shared-folder> --verbose -o
user=user,pass="",uid=1000,gid=1000
(there is no password)
All file names with special characters (like Çãõé...) have a question mark
in place of the accented character and I can't open the file or folder, as
any command responds the file doesn't exist. This happens in dolphin, thunar
and in the command line with simple commands like cat.
I tried adding the following option without success
iocharset=utf-8
iocharset=utf-8,codepage=cp437
iocharset=utf-8,codepage=cp850
iocharset=iso8859-1
This also happens if I access the share from my android device, so I was
convinced it was a problem related to old firmware (from the router).
However, recently I connected to the drive using smbclient and the file
names appeared correctly. I would like to mount this share folder at fstab,
and so smbclient is not a good solution.
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
(smbclient version 4.1.11-Debian)
Server=[Samba 2.2.12]
So. Is there something else I can try?
Thanks in advance.
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
More majordomo info at http://vger.kernel.org/majordomo-info.html
steve
2014-09-28 08:32:38 UTC
Permalink
Post by adcromitus
Hello again,
Sorry for the long time to reply.
I've been going around on how to do this. I set up Wireshark and saw
what the server was transmitting. However I'm not really sure about w=
hat
Post by adcromitus
I should send here.
Anyway I did a "ls" on a dir with a file named "Cole=C3=A7=C3=A3o", a=
nd wireshar
Post by adcromitus
captured "cole \247 \243o". I send a few frames from tcpdump where th=
at
Post by adcromitus
happens.
How can I see if my distro defaults to UTF-8 on the client?
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
Thanks in advance.
This seems strange because modern Linux distributions should map UCS=
-2
Post by adcromitus
(16 bit Unicode characters which cifs servers like Windows and Samba
send over the wire) fine to UTF-8 which is the typical default one f=
or
Post by adcromitus
local.
Does you distro not default to UTF-8 on the client?
Would be helpful to see a wire trace (ethereal or tcpdump) and make
sure the server is sending UCS-2 (Unicode) on the wire. See
https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting
Post by adcromitus
Hy,
I'm not sure of what can be relevant so I'll tell the whole story.
I have a router (that I got from my ISP) which allows the connectio=
n
Post by adcromitus
Post by adcromitus
of a
pen/HDD by USB. That pen is shared on the network as a Windows Shar=
e
Post by adcromitus
Post by adcromitus
folder.
In Windows 7 I can see all the files name correctly, but when I mou=
nt
Post by adcromitus
Post by adcromitus
the
mount -t cifs //<local share ip-address>/<shared-folder> --verbose =
-o
Post by adcromitus
Post by adcromitus
user=3Duser,pass=3D"",uid=3D1000,gid=3D1000
(there is no password)
All file names with special characters (like =C3=87=C3=A3=C3=B5=C3=A9=
=2E..) have a question
Post by adcromitus
Post by adcromitus
mark
in place of the accented character and I can't open the file or folder, as
any command responds the file doesn't exist. This happens in dolphi=
n,
Post by adcromitus
Post by adcromitus
thunar
and in the command line with simple commands like cat.
I tried adding the following option without success
iocharset=3Dutf-8
iocharset=3Dutf-8,codepage=3Dcp437
iocharset=3Dutf-8,codepage=3Dcp850
iocharset=3Diso8859-1
This also happens if I access the share from my android device, so =
I was
Post by adcromitus
Post by adcromitus
convinced it was a problem related to old firmware (from the router=
).
Post by adcromitus
Post by adcromitus
However, recently I connected to the drive using smbclient and the =
file
Post by adcromitus
Post by adcromitus
names appeared correctly. I would like to mount this share folder a=
t
Post by adcromitus
Post by adcromitus
fstab,
and so smbclient is not a good solution.
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
And I get this information from smbclient -L <local share ip addres=
(smbclient version 4.1.11-Debian)
Server=3D[Samba 2.2.12]
So. Is there something else I can try?
Thanks in advance.
Hi
Probably an old cifs-utils? We have 6.2 with Spanish:
***@altet:~> ls
avi=C3=B1=C3=B3n
bar=C3=A7a

HTH,
Steve
Post by adcromitus
Post by adcromitus
--
To unsubscribe from this list: send the line "unsubscribe linux-cif=
s" in
Post by adcromitus
Post by adcromitus
More majordomo info at http://vger.kernel.org/majordomo-info.html
adcromitus
2014-09-29 22:50:10 UTC
Permalink
Post by steve
Post by adcromitus
Hello again,
Sorry for the long time to reply.
I've been going around on how to do this. I set up Wireshark and saw
what the server was transmitting. However I'm not really sure about =
what
Post by steve
Post by adcromitus
I should send here.
Anyway I did a "ls" on a dir with a file named "Cole=C3=A7=C3=A3o", =
and wireshar
Post by steve
Post by adcromitus
captured "cole \247 \243o". I send a few frames from tcpdump where t=
hat
Post by steve
Post by adcromitus
happens.
How can I see if my distro defaults to UTF-8 on the client?
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
Thanks in advance.
This seems strange because modern Linux distributions should map UC=
S-2
Post by steve
Post by adcromitus
(16 bit Unicode characters which cifs servers like Windows and Samb=
a
Post by steve
Post by adcromitus
send over the wire) fine to UTF-8 which is the typical default one =
for
Post by steve
Post by adcromitus
local.
Does you distro not default to UTF-8 on the client?
Would be helpful to see a wire trace (ethereal or tcpdump) and make
sure the server is sending UCS-2 (Unicode) on the wire. See
https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting
Post by adcromitus
Hy,
I'm not sure of what can be relevant so I'll tell the whole story.
I have a router (that I got from my ISP) which allows the connecti=
on
Post by steve
Post by adcromitus
Post by adcromitus
of a
pen/HDD by USB. That pen is shared on the network as a Windows Sha=
re
Post by steve
Post by adcromitus
Post by adcromitus
folder.
In Windows 7 I can see all the files name correctly, but when I mo=
unt
Post by steve
Post by adcromitus
Post by adcromitus
the
mount -t cifs //<local share ip-address>/<shared-folder> --verbose=
-o
Post by steve
Post by adcromitus
Post by adcromitus
user=3Duser,pass=3D"",uid=3D1000,gid=3D1000
(there is no password)
All file names with special characters (like =C3=87=C3=A3=C3=B5=C3=
=A9...) have a question
Post by steve
Post by adcromitus
Post by adcromitus
mark
in place of the accented character and I can't open the file or folder, as
any command responds the file doesn't exist. This happens in dolph=
in,
Post by steve
Post by adcromitus
Post by adcromitus
thunar
and in the command line with simple commands like cat.
I tried adding the following option without success
iocharset=3Dutf-8
iocharset=3Dutf-8,codepage=3Dcp437
iocharset=3Dutf-8,codepage=3Dcp850
iocharset=3Diso8859-1
This also happens if I access the share from my android device, so=
=20
Post by steve
Post by adcromitus
Post by adcromitus
I was
convinced it was a problem related to old firmware (from the route=
r).
Post by steve
Post by adcromitus
Post by adcromitus
However, recently I connected to the drive using smbclient and the=
=20
Post by steve
Post by adcromitus
Post by adcromitus
file
names appeared correctly. I would like to mount this share folder =
at
Post by steve
Post by adcromitus
Post by adcromitus
fstab,
and so smbclient is not a good solution.
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
And I get this information from smbclient -L <local share ip addre=
(smbclient version 4.1.11-Debian)
Server=3D[Samba 2.2.12]
So. Is there something else I can try?
Thanks in advance.
Hi
avi=C3=B1=C3=B3n
bar=C3=A7a
HTH,
Steve
Hy Steve,

So I used chroot to install the cifs-utils version from Debian next=20
release (cifs-utils v.6.4), and the result was the same as with my=20
current version.

Does the tcpdump helped in any way?

Thanks again.
Post by steve
Post by adcromitus
Post by adcromitus
--=20
To unsubscribe from this list: send the line "unsubscribe=20
linux-cifs" in
More majordomo info at http://vger.kernel.org/majordomo-info.html
Steve French
2014-09-30 01:32:44 UTC
Permalink
=46irst strange thing is why isn't the server negotiating Unicode - tha=
t
is unusual these days

Negotiating unicode (UCS-2) the way like most every other server would
avoid this issue

Looking at the trace we are not setting the Unicode flag on SMB FindFir=
st

presumably because it was not offered at SMB tree connect time. We
always set it in the normal case when the server supports Unicode (see
below)

265 if (treeCon->ses) {
266 if (treeCon->ses->capabilities & CAP_UNICODE)
267 buffer->Flags2 |=3D SMBFLG2_UNICODE;



So without Unicode we have to set the code page manually. The server
is way too old (10 years?) for us to mount smb2 (which would force
unicode on the wire) or to use Unix Extensions (which probably
requires at least 3.0 Samba to be useful).

Haven't tried iocharset and codepage mount options recently
(presumably the way to experiment with this is to turn off Unicode in
Samba smb.conf via unicode=3Dfalse)
Post by adcromitus
Post by steve
Post by adcromitus
Hello again,
Sorry for the long time to reply.
I've been going around on how to do this. I set up Wireshark and sa=
w
Post by adcromitus
Post by steve
Post by adcromitus
what the server was transmitting. However I'm not really sure about=
what
Post by adcromitus
Post by steve
Post by adcromitus
I should send here.
Anyway I did a "ls" on a dir with a file named "Cole=C3=A7=C3=A3o",=
and wireshar
Post by adcromitus
Post by steve
Post by adcromitus
captured "cole \247 \243o". I send a few frames from tcpdump where =
that
Post by adcromitus
Post by steve
Post by adcromitus
happens.
How can I see if my distro defaults to UTF-8 on the client?
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
Thanks in advance.
This seems strange because modern Linux distributions should map U=
CS-2
Post by adcromitus
Post by steve
Post by adcromitus
(16 bit Unicode characters which cifs servers like Windows and Sam=
ba
Post by adcromitus
Post by steve
Post by adcromitus
send over the wire) fine to UTF-8 which is the typical default one=
for
Post by adcromitus
Post by steve
Post by adcromitus
local.
Does you distro not default to UTF-8 on the client?
Would be helpful to see a wire trace (ethereal or tcpdump) and mak=
e
Post by adcromitus
Post by steve
Post by adcromitus
sure the server is sending UCS-2 (Unicode) on the wire. See
https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting
Hy,
I'm not sure of what can be relevant so I'll tell the whole story=
=2E
Post by adcromitus
Post by steve
Post by adcromitus
I have a router (that I got from my ISP) which allows the connect=
ion
Post by adcromitus
Post by steve
Post by adcromitus
of a
pen/HDD by USB. That pen is shared on the network as a Windows Sh=
are
Post by adcromitus
Post by steve
Post by adcromitus
folder.
In Windows 7 I can see all the files name correctly, but when I m=
ount
Post by adcromitus
Post by steve
Post by adcromitus
the
mount -t cifs //<local share ip-address>/<shared-folder> --verbos=
e -o
Post by adcromitus
Post by steve
Post by adcromitus
user=3Duser,pass=3D"",uid=3D1000,gid=3D1000
(there is no password)
All file names with special characters (like =C3=87=C3=A3=C3=B5=C3=
=A9...) have a question
Post by adcromitus
Post by steve
Post by adcromitus
mark
in place of the accented character and I can't open the file or folder, as
any command responds the file doesn't exist. This happens in dolp=
hin,
Post by adcromitus
Post by steve
Post by adcromitus
thunar
and in the command line with simple commands like cat.
I tried adding the following option without success
iocharset=3Dutf-8
iocharset=3Dutf-8,codepage=3Dcp437
iocharset=3Dutf-8,codepage=3Dcp850
iocharset=3Diso8859-1
This also happens if I access the share from my android device, s=
o I
Post by adcromitus
Post by steve
Post by adcromitus
was
convinced it was a problem related to old firmware (from the rout=
er).
Post by adcromitus
Post by steve
Post by adcromitus
However, recently I connected to the drive using smbclient and th=
e file
Post by adcromitus
Post by steve
Post by adcromitus
names appeared correctly. I would like to mount this share folder=
at
Post by adcromitus
Post by steve
Post by adcromitus
fstab,
and so smbclient is not a good solution.
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
And I get this information from smbclient -L <local share ip addr=
(smbclient version 4.1.11-Debian)
Server=3D[Samba 2.2.12]
So. Is there something else I can try?
Thanks in advance.
Hi
avi=C3=B1=C3=B3n
bar=C3=A7a
HTH,
Steve
Hy Steve,
So I used chroot to install the cifs-utils version from Debian next r=
elease
Post by adcromitus
(cifs-utils v.6.4), and the result was the same as with my current ve=
rsion.
Post by adcromitus
Does the tcpdump helped in any way?
Thanks again.
Post by steve
Post by adcromitus
--
To unsubscribe from this list: send the line "unsubscribe linux-c=
ifs"
Post by adcromitus
Post by steve
Post by adcromitus
in
More majordomo info at http://vger.kernel.org/majordomo-info.html
--=20
Thanks,

Steve
Steve French
2014-09-30 01:33:48 UTC
Permalink
To clarify - we need to experiment with setting "unicode=3Dfalse" in a
normal Samba server's smb.conf and experiment with client mount
options to see if it can be reproduced
First strange thing is why isn't the server negotiating Unicode - tha=
t
is unusual these days
Negotiating unicode (UCS-2) the way like most every other server woul=
d
avoid this issue
Looking at the trace we are not setting the Unicode flag on SMB FindF=
irst
presumably because it was not offered at SMB tree connect time. We
always set it in the normal case when the server supports Unicode (se=
e
below)
265 if (treeCon->ses) {
266 if (treeCon->ses->capabilities & CAP_UNICODE)
267 buffer->Flags2 |=3D SMBFLG2_UNICODE;
So without Unicode we have to set the code page manually. The server
is way too old (10 years?) for us to mount smb2 (which would force
unicode on the wire) or to use Unix Extensions (which probably
requires at least 3.0 Samba to be useful).
Haven't tried iocharset and codepage mount options recently
(presumably the way to experiment with this is to turn off Unicode in
Samba smb.conf via unicode=3Dfalse)
Post by adcromitus
Post by steve
Post by adcromitus
Hello again,
Sorry for the long time to reply.
I've been going around on how to do this. I set up Wireshark and s=
aw
Post by adcromitus
Post by steve
Post by adcromitus
what the server was transmitting. However I'm not really sure abou=
t what
Post by adcromitus
Post by steve
Post by adcromitus
I should send here.
Anyway I did a "ls" on a dir with a file named "Cole=C3=A7=C3=A3o"=
, and wireshar
Post by adcromitus
Post by steve
Post by adcromitus
captured "cole \247 \243o". I send a few frames from tcpdump where=
that
Post by adcromitus
Post by steve
Post by adcromitus
happens.
How can I see if my distro defaults to UTF-8 on the client?
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
Thanks in advance.
This seems strange because modern Linux distributions should map =
UCS-2
Post by adcromitus
Post by steve
Post by adcromitus
(16 bit Unicode characters which cifs servers like Windows and Sa=
mba
Post by adcromitus
Post by steve
Post by adcromitus
send over the wire) fine to UTF-8 which is the typical default on=
e for
Post by adcromitus
Post by steve
Post by adcromitus
local.
Does you distro not default to UTF-8 on the client?
Would be helpful to see a wire trace (ethereal or tcpdump) and ma=
ke
Post by adcromitus
Post by steve
Post by adcromitus
sure the server is sending UCS-2 (Unicode) on the wire. See
https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting
Hy,
I'm not sure of what can be relevant so I'll tell the whole stor=
y.
Post by adcromitus
Post by steve
Post by adcromitus
I have a router (that I got from my ISP) which allows the connec=
tion
Post by adcromitus
Post by steve
Post by adcromitus
of a
pen/HDD by USB. That pen is shared on the network as a Windows S=
hare
Post by adcromitus
Post by steve
Post by adcromitus
folder.
In Windows 7 I can see all the files name correctly, but when I =
mount
Post by adcromitus
Post by steve
Post by adcromitus
the
mount -t cifs //<local share ip-address>/<shared-folder> --verbo=
se -o
Post by adcromitus
Post by steve
Post by adcromitus
user=3Duser,pass=3D"",uid=3D1000,gid=3D1000
(there is no password)
All file names with special characters (like =C3=87=C3=A3=C3=B5=C3=
=A9...) have a question
Post by adcromitus
Post by steve
Post by adcromitus
mark
in place of the accented character and I can't open the file or folder, as
any command responds the file doesn't exist. This happens in dol=
phin,
Post by adcromitus
Post by steve
Post by adcromitus
thunar
and in the command line with simple commands like cat.
I tried adding the following option without success
iocharset=3Dutf-8
iocharset=3Dutf-8,codepage=3Dcp437
iocharset=3Dutf-8,codepage=3Dcp850
iocharset=3Diso8859-1
This also happens if I access the share from my android device, =
so I
Post by adcromitus
Post by steve
Post by adcromitus
was
convinced it was a problem related to old firmware (from the rou=
ter).
Post by adcromitus
Post by steve
Post by adcromitus
However, recently I connected to the drive using smbclient and t=
he file
Post by adcromitus
Post by steve
Post by adcromitus
names appeared correctly. I would like to mount this share folde=
r at
Post by adcromitus
Post by steve
Post by adcromitus
fstab,
and so smbclient is not a good solution.
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
And I get this information from smbclient -L <local share ip add=
(smbclient version 4.1.11-Debian)
Server=3D[Samba 2.2.12]
So. Is there something else I can try?
Thanks in advance.
Hi
avi=C3=B1=C3=B3n
bar=C3=A7a
HTH,
Steve
Hy Steve,
So I used chroot to install the cifs-utils version from Debian next =
release
Post by adcromitus
(cifs-utils v.6.4), and the result was the same as with my current v=
ersion.
Post by adcromitus
Does the tcpdump helped in any way?
Thanks again.
Post by steve
Post by adcromitus
--
To unsubscribe from this list: send the line "unsubscribe linux-=
cifs"
Post by adcromitus
Post by steve
Post by adcromitus
in
More majordomo info at http://vger.kernel.org/majordomo-info.htm=
l
--
Thanks,
Steve
--=20
Thanks,

Steve
Steve French
2014-09-30 02:40:28 UTC
Permalink
I did some experiments:

Took a Samba server, and set "unicode=3Dfalse" in smb.conf

mounted to the server from cifs and verified that Unicode is not being =
sent

created some files locally with Spanish characters in the directory
"test" and as expected the special characters were mapped to '?' (see
the ls of /mnt1/test)

***@ubuntu:/mnt1/test1$ ls ~/test/*a*b*
/home/sfrench/test/123=C3=A1a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=BCf=C3=B1g=
=C2=BFh=C2=A1 /home/sfrench/test/=C3=A1a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=
=BCf=C3=B1g=C2=BFh=C2=A1
***@ubuntu:/mnt1/test1$ ls ~/test1
123=E2=94=9C=C3=ADa=E2=94=9C=C2=AEb=E2=94=9C=C2=A1c=E2=94=9C=E2=94=82d=E2=
=94=9C=E2=95=91e=E2=94=9C=E2=95=9Df=E2=94=9C=E2=96=92g=E2=94=AC=E2=94=90=
h=E2=94=AC=C3=AD =E2=94=9C=C3=ADa=E2=94=9C=C2=AEb=E2=94=9C=C2=A1c=E2=94=
=9C=E2=94=82d=E2=94=9C=E2=95=91e=E2=94=9C=E2=95=9Df=E2=94=9C=E2=96=92g=E2=
=94=AC=E2=94=90h=E2=94=AC=C3=AD
***@ubuntu:/mnt1/test1$ ls /mnt1/test/*a*b*
/mnt1/test/123?a?b?c?d?e?f?g?h? /mnt1/test/?a?b?c?d?e?f?g?h?
***@ubuntu:/mnt1/test1$ ls /mnt1/test1/
123=C3=A1a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=BCf=C3=B1g=C2=BFh=C2=A1 =C3=A1=
a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=BCf=C3=B1g=C2=BFh=C2=A1

unmounted and the mounted with "iocharset=3Dcp850" on the client.
Created the files over the remote mount in /mnt1/test1 and it worked
fine and the Spanish characters were visible (locally in ~/test1 those
same filenames are not easily visible since the characters map
differently).

So ... it looks like if files were created on a mount with the right
code page (iocharset=3Dcp850 in my case) then you should be able to
create and read them fine remotely.
To clarify - we need to experiment with setting "unicode=3Dfalse" in =
a
normal Samba server's smb.conf and experiment with client mount
options to see if it can be reproduced
First strange thing is why isn't the server negotiating Unicode - th=
at
is unusual these days
Negotiating unicode (UCS-2) the way like most every other server wou=
ld
avoid this issue
Looking at the trace we are not setting the Unicode flag on SMB Find=
=46irst
presumably because it was not offered at SMB tree connect time. We
always set it in the normal case when the server supports Unicode (s=
ee
below)
265 if (treeCon->ses) {
266 if (treeCon->ses->capabilities & CAP_UNICODE)
267 buffer->Flags2 |=3D SMBFLG2_UNICODE;
So without Unicode we have to set the code page manually. The serve=
r
is way too old (10 years?) for us to mount smb2 (which would force
unicode on the wire) or to use Unix Extensions (which probably
requires at least 3.0 Samba to be useful).
Haven't tried iocharset and codepage mount options recently
(presumably the way to experiment with this is to turn off Unicode i=
n
Samba smb.conf via unicode=3Dfalse)
Post by adcromitus
Post by steve
Post by adcromitus
Hello again,
Sorry for the long time to reply.
I've been going around on how to do this. I set up Wireshark and =
saw
Post by adcromitus
Post by steve
Post by adcromitus
what the server was transmitting. However I'm not really sure abo=
ut what
Post by adcromitus
Post by steve
Post by adcromitus
I should send here.
Anyway I did a "ls" on a dir with a file named "Cole=C3=A7=C3=A3o=
", and wireshar
Post by adcromitus
Post by steve
Post by adcromitus
captured "cole \247 \243o". I send a few frames from tcpdump wher=
e that
Post by adcromitus
Post by steve
Post by adcromitus
happens.
How can I see if my distro defaults to UTF-8 on the client?
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
Thanks in advance.
This seems strange because modern Linux distributions should map=
UCS-2
Post by adcromitus
Post by steve
Post by adcromitus
(16 bit Unicode characters which cifs servers like Windows and S=
amba
Post by adcromitus
Post by steve
Post by adcromitus
send over the wire) fine to UTF-8 which is the typical default o=
ne for
Post by adcromitus
Post by steve
Post by adcromitus
local.
Does you distro not default to UTF-8 on the client?
Would be helpful to see a wire trace (ethereal or tcpdump) and m=
ake
Post by adcromitus
Post by steve
Post by adcromitus
sure the server is sending UCS-2 (Unicode) on the wire. See
https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting
m>
Post by adcromitus
Post by steve
Post by adcromitus
Hy,
I'm not sure of what can be relevant so I'll tell the whole sto=
ry.
Post by adcromitus
Post by steve
Post by adcromitus
I have a router (that I got from my ISP) which allows the conne=
ction
Post by adcromitus
Post by steve
Post by adcromitus
of a
pen/HDD by USB. That pen is shared on the network as a Windows =
Share
Post by adcromitus
Post by steve
Post by adcromitus
folder.
In Windows 7 I can see all the files name correctly, but when I=
mount
Post by adcromitus
Post by steve
Post by adcromitus
the
mount -t cifs //<local share ip-address>/<shared-folder> --verb=
ose -o
Post by adcromitus
Post by steve
Post by adcromitus
user=3Duser,pass=3D"",uid=3D1000,gid=3D1000
(there is no password)
All file names with special characters (like =C3=87=C3=A3=C3=B5=
=C3=A9...) have a question
Post by adcromitus
Post by steve
Post by adcromitus
mark
in place of the accented character and I can't open the file or folder, as
any command responds the file doesn't exist. This happens in do=
lphin,
Post by adcromitus
Post by steve
Post by adcromitus
thunar
and in the command line with simple commands like cat.
I tried adding the following option without success
iocharset=3Dutf-8
iocharset=3Dutf-8,codepage=3Dcp437
iocharset=3Dutf-8,codepage=3Dcp850
iocharset=3Diso8859-1
This also happens if I access the share from my android device,=
so I
Post by adcromitus
Post by steve
Post by adcromitus
was
convinced it was a problem related to old firmware (from the ro=
uter).
Post by adcromitus
Post by steve
Post by adcromitus
However, recently I connected to the drive using smbclient and =
the file
Post by adcromitus
Post by steve
Post by adcromitus
names appeared correctly. I would like to mount this share fold=
er at
Post by adcromitus
Post by steve
Post by adcromitus
fstab,
and so smbclient is not a good solution.
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
And I get this information from smbclient -L <local share ip ad=
(smbclient version 4.1.11-Debian)
Server=3D[Samba 2.2.12]
So. Is there something else I can try?
Thanks in advance.
Hi
avi=C3=B1=C3=B3n
bar=C3=A7a
HTH,
Steve
Hy Steve,
So I used chroot to install the cifs-utils version from Debian next=
release
Post by adcromitus
(cifs-utils v.6.4), and the result was the same as with my current =
version.
Post by adcromitus
Does the tcpdump helped in any way?
Thanks again.
Post by steve
Post by adcromitus
--
To unsubscribe from this list: send the line "unsubscribe linux=
-cifs"
Post by adcromitus
Post by steve
Post by adcromitus
in
More majordomo info at http://vger.kernel.org/majordomo-info.ht=
ml
--
Thanks,
Steve
--
Thanks,
Steve
--=20
Thanks,

Steve
adcromitus
2014-09-30 18:38:20 UTC
Permalink
Hy,

I tried creating a new file, and as I write it correctly, it appears=20
garbled in "ls".

So, I hadn't though about this, but he files were created locally in a=20
=46AT32 volume.
I did some research and it appears the most probable cp is 1252 (I'm in=
=20
Portugal). But I got this error:

# mount -t cifs //192.168.1.253/Disk_a1 /shared/ahgora --verbose -o=20
user=3Duser,pass=3D"",uid=3D1000,gid=3D1000,iocharset=3Dcp1257
mount.cifs kernel mount options:=20
ip=3D192.168.1.253,unc=3D\\192.168.1.253\Disk_a1,iocharset=3Dcp1257,uid=
=3D1000,gid=3D1000,user=3Duser,pass=3D********
mount error(79): Can not access a needed shared library
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

I also tried cp860 and cp 1250, but the accented characters were kept a=
s=20
weird symbols.

I didn't quite get how iocharset would solve this, as by you're=20
experiment, the server seems not to support UTF.
iocharset
Charset used to convert local path names to and from=20
Unicode. Unicode is used by default for network path names if the serve=
r=20
supports
it. If iocharset is not specified then the nls_default=20
specified during the local client kernel build will be used. **If serve=
r=20
does not
support Unicode, this parameter is unused**.


Since smbclient seems to be doing the conversion correctly, isn't it=20
possible to just "ask it" which conversion it is doing?

Thanks
Post by Steve French
Took a Samba server, and set "unicode=3Dfalse" in smb.conf
mounted to the server from cifs and verified that Unicode is not bein=
g sent
Post by Steve French
created some files locally with Spanish characters in the directory
"test" and as expected the special characters were mapped to '?' (see
the ls of /mnt1/test)
/home/sfrench/test/123=C3=A1a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=BCf=C3=B1=
g=C2=BFh=C2=A1 /home/sfrench/test/=C3=A1a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=
=BCf=C3=B1g=C2=BFh=C2=A1
Post by Steve French
123=E2=94=9C=C3=ADa=E2=94=9C=C2=AEb=E2=94=9C=C2=A1c=E2=94=9C=E2=94=82=
d=E2=94=9C=E2=95=91e=E2=94=9C=E2=95=9Df=E2=94=9C=E2=96=92g=E2=94=AC=E2=94=
=90h=E2=94=AC=C3=AD =E2=94=9C=C3=ADa=E2=94=9C=C2=AEb=E2=94=9C=C2=A1c=E2=
=94=9C=E2=94=82d=E2=94=9C=E2=95=91e=E2=94=9C=E2=95=9Df=E2=94=9C=E2=96=92=
g=E2=94=AC=E2=94=90h=E2=94=AC=C3=AD
Post by Steve French
/mnt1/test/123?a?b?c?d?e?f?g?h? /mnt1/test/?a?b?c?d?e?f?g?h?
123=C3=A1a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=BCf=C3=B1g=C2=BFh=C2=A1 =C3=
=A1a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=BCf=C3=B1g=C2=BFh=C2=A1
Post by Steve French
unmounted and the mounted with "iocharset=3Dcp850" on the client.
Created the files over the remote mount in /mnt1/test1 and it worked
fine and the Spanish characters were visible (locally in ~/test1 thos=
e
Post by Steve French
same filenames are not easily visible since the characters map
differently).
So ... it looks like if files were created on a mount with the right
code page (iocharset=3Dcp850 in my case) then you should be able to
create and read them fine remotely.
To clarify - we need to experiment with setting "unicode=3Dfalse" in=
a
Post by Steve French
normal Samba server's smb.conf and experiment with client mount
options to see if it can be reproduced
First strange thing is why isn't the server negotiating Unicode - t=
hat
Post by Steve French
is unusual these days
Negotiating unicode (UCS-2) the way like most every other server wo=
uld
Post by Steve French
avoid this issue
Looking at the trace we are not setting the Unicode flag on SMB Fin=
dFirst
Post by Steve French
presumably because it was not offered at SMB tree connect time. We
always set it in the normal case when the server supports Unicode (=
see
Post by Steve French
below)
265 if (treeCon->ses) {
266 if (treeCon->ses->capabilities & CAP_UNICODE)
267 buffer->Flags2 |=3D SMBFLG2_UNICODE;
So without Unicode we have to set the code page manually. The serv=
er
Post by Steve French
is way too old (10 years?) for us to mount smb2 (which would force
unicode on the wire) or to use Unix Extensions (which probably
requires at least 3.0 Samba to be useful).
Haven't tried iocharset and codepage mount options recently
(presumably the way to experiment with this is to turn off Unicode =
in
Post by Steve French
Samba smb.conf via unicode=3Dfalse)
Post by adcromitus
Post by steve
Post by adcromitus
Hello again,
Sorry for the long time to reply.
I've been going around on how to do this. I set up Wireshark and=
saw
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
what the server was transmitting. However I'm not really sure ab=
out what
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
I should send here.
Anyway I did a "ls" on a dir with a file named "Cole=C3=A7=C3=A3=
o", and wireshar
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
captured "cole \247 \243o". I send a few frames from tcpdump whe=
re that
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
happens.
How can I see if my distro defaults to UTF-8 on the client?
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
Thanks in advance.
This seems strange because modern Linux distributions should ma=
p UCS-2
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
(16 bit Unicode characters which cifs servers like Windows and =
Samba
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
send over the wire) fine to UTF-8 which is the typical default =
one for
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
local.
Does you distro not default to UTF-8 on the client?
Would be helpful to see a wire trace (ethereal or tcpdump) and =
make
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
sure the server is sending UCS-2 (Unicode) on the wire. See
https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting
om>
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
Hy,
I'm not sure of what can be relevant so I'll tell the whole st=
ory.
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
I have a router (that I got from my ISP) which allows the conn=
ection
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
of a
pen/HDD by USB. That pen is shared on the network as a Windows=
Share
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
folder.
In Windows 7 I can see all the files name correctly, but when =
I mount
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
the
mount -t cifs //<local share ip-address>/<shared-folder> --ver=
bose -o
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
user=3Duser,pass=3D"",uid=3D1000,gid=3D1000
(there is no password)
All file names with special characters (like =C3=87=C3=A3=C3=B5=
=C3=A9...) have a question
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
mark
in place of the accented character and I can't open the file o=
r
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
folder, as
any command responds the file doesn't exist. This happens in d=
olphin,
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
thunar
and in the command line with simple commands like cat.
I tried adding the following option without success
iocharset=3Dutf-8
iocharset=3Dutf-8,codepage=3Dcp437
iocharset=3Dutf-8,codepage=3Dcp850
iocharset=3Diso8859-1
This also happens if I access the share from my android device=
, so I
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
was
convinced it was a problem related to old firmware (from the r=
outer).
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
However, recently I connected to the drive using smbclient and=
the file
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
names appeared correctly. I would like to mount this share fol=
der at
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
fstab,
and so smbclient is not a good solution.
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
And I get this information from smbclient -L <local share ip a=
(smbclient version 4.1.11-Debian)
Server=3D[Samba 2.2.12]
So. Is there something else I can try?
Thanks in advance.
Hi
avi=C3=B1=C3=B3n
bar=C3=A7a
HTH,
Steve
Hy Steve,
So I used chroot to install the cifs-utils version from Debian nex=
t release
Post by Steve French
Post by adcromitus
(cifs-utils v.6.4), and the result was the same as with my current=
version.
Post by Steve French
Post by adcromitus
Does the tcpdump helped in any way?
Thanks again.
Post by steve
Post by adcromitus
--
To unsubscribe from this list: send the line "unsubscribe linu=
x-cifs"
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
in
More majordomo info at http://vger.kernel.org/majordomo-info.h=
tml
Post by Steve French
--
Thanks,
Steve
--
Thanks,
Steve
Shirish Pargaonkar
2014-10-05 06:08:28 UTC
Permalink
Probably not easy to solve I think.

cifs client needs to encode/decode correct bytestream / bytesequence o=
n the
wire by taking into consideration the charset used by cifs client even =
when
unicode is not negotiated.
If iocharset is specified, it should honour that mount option for non-u=
nicode
case also.

Basically, decode/encode of received/sent bytestream / bytesequence on =
the
wire should happen in both the cases - unicode and non-unicode - based =
on
iocharset if specified as a mount option or default charset when iocha=
rset
is not specified as a mount option.

With UCS-2LE encoding, we know every unicode character on the wire is t=
wo bytes
long but without unicode, we do not know how many btyes long is each ch=
aracter,
server could be using multi-byte/variable bytesize charset.
So one option would be to use another mount option codepage to specify
the charset used at the server and use the charset specified with the
codepage mount option. If server does not support unicode and codepage
option is not specified, consider utf8 as a default charset on the serv=
er.

I think Jeff Layton had proposed such ideas/solution before and probabl=
y has/ha
some related code also, not sure, will try to look for that code.
Hy,
I tried creating a new file, and as I write it correctly, it appears =
garbled
in "ls".
So, I hadn't though about this, but he files were created locally in =
a FAT32
volume.
I did some research and it appears the most probable cp is 1252 (I'm =
in
# mount -t cifs //192.168.1.253/Disk_a1 /shared/ahgora --verbose -o
user=3Duser,pass=3D"",uid=3D1000,gid=3D1000,iocharset=3Dcp1257
ip=3D192.168.1.253,unc=3D\\192.168.1.253\Disk_a1,iocharset=3Dcp1257,u=
id=3D1000,gid=3D1000,user=3Duser,pass=3D********
mount error(79): Can not access a needed shared library
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I also tried cp860 and cp 1250, but the accented characters were kept=
as
weird symbols.
I didn't quite get how iocharset would solve this, as by you're exper=
iment,
the server seems not to support UTF.
iocharset
Charset used to convert local path names to and from Unico=
de.
Unicode is used by default for network path names if the server suppo=
rts
it. If iocharset is not specified then the nls_default spe=
cified
during the local client kernel build will be used. **If server does n=
ot
support Unicode, this parameter is unused**.
Since smbclient seems to be doing the conversion correctly, isn't it
possible to just "ask it" which conversion it is doing?
Thanks
Post by Steve French
Took a Samba server, and set "unicode=3Dfalse" in smb.conf
mounted to the server from cifs and verified that Unicode is not bei=
ng
Post by Steve French
sent
created some files locally with Spanish characters in the directory
"test" and as expected the special characters were mapped to '?' (se=
e
Post by Steve French
the ls of /mnt1/test)
/home/sfrench/test/123=C3=A1a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=BCf=C3=B1=
g=C2=BFh=C2=A1
Post by Steve French
/home/sfrench/test/=C3=A1a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=BCf=C3=B1g=
=C2=BFh=C2=A1
Post by Steve French
123=E2=94=9C=C3=ADa=E2=94=9C=C2=AEb=E2=94=9C=C2=A1c=E2=94=9C=E2=94=82=
d=E2=94=9C=E2=95=91e=E2=94=9C=E2=95=9Df=E2=94=9C=E2=96=92g=E2=94=AC=E2=94=
=90h=E2=94=AC=C3=AD =E2=94=9C=C3=ADa=E2=94=9C=C2=AEb=E2=94=9C=C2=A1c=E2=
=94=9C=E2=94=82d=E2=94=9C=E2=95=91e=E2=94=9C=E2=95=9Df=E2=94=9C=E2=96=92=
g=E2=94=AC=E2=94=90h=E2=94=AC=C3=AD
Post by Steve French
/mnt1/test/123?a?b?c?d?e?f?g?h? /mnt1/test/?a?b?c?d?e?f?g?h?
123=C3=A1a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=BCf=C3=B1g=C2=BFh=C2=A1 =C3=
=A1a=C3=A9b=C3=ADc=C3=B3d=C3=BAe=C3=BCf=C3=B1g=C2=BFh=C2=A1
Post by Steve French
unmounted and the mounted with "iocharset=3Dcp850" on the client.
Created the files over the remote mount in /mnt1/test1 and it worked
fine and the Spanish characters were visible (locally in ~/test1 tho=
se
Post by Steve French
same filenames are not easily visible since the characters map
differently).
So ... it looks like if files were created on a mount with the right
code page (iocharset=3Dcp850 in my case) then you should be able to
create and read them fine remotely.
To clarify - we need to experiment with setting "unicode=3Dfalse" i=
n a
Post by Steve French
normal Samba server's smb.conf and experiment with client mount
options to see if it can be reproduced
First strange thing is why isn't the server negotiating Unicode - =
that
Post by Steve French
is unusual these days
Negotiating unicode (UCS-2) the way like most every other server w=
ould
Post by Steve French
avoid this issue
Looking at the trace we are not setting the Unicode flag on SMB
FindFirst
presumably because it was not offered at SMB tree connect time. W=
e
Post by Steve French
always set it in the normal case when the server supports Unicode =
(see
Post by Steve French
below)
265 if (treeCon->ses) {
266 if (treeCon->ses->capabilities & CAP_UNICODE)
267 buffer->Flags2 |=3D SMBFLG2_UNICODE;
So without Unicode we have to set the code page manually. The ser=
ver
Post by Steve French
is way too old (10 years?) for us to mount smb2 (which would force
unicode on the wire) or to use Unix Extensions (which probably
requires at least 3.0 Samba to be useful).
Haven't tried iocharset and codepage mount options recently
(presumably the way to experiment with this is to turn off Unicode=
in
Post by Steve French
Samba smb.conf via unicode=3Dfalse)
Post by adcromitus
Post by steve
Post by adcromitus
Hello again,
Sorry for the long time to reply.
I've been going around on how to do this. I set up Wireshark an=
d saw
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
what the server was transmitting. However I'm not really sure a=
bout
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
what
I should send here.
Anyway I did a "ls" on a dir with a file named "Cole=C3=A7=C3=A3=
o", and
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
wireshar
captured "cole \247 \243o". I send a few frames from tcpdump wh=
ere
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
that
happens.
How can I see if my distro defaults to UTF-8 on the client?
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
Thanks in advance.
This seems strange because modern Linux distributions should m=
ap
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
UCS-2
(16 bit Unicode characters which cifs servers like Windows and=
Samba
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
send over the wire) fine to UTF-8 which is the typical default=
one
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
for
local.
Does you distro not default to UTF-8 on the client?
Would be helpful to see a wire trace (ethereal or tcpdump) and=
make
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
sure the server is sending UCS-2 (Unicode) on the wire. See
https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting
com>
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
Hy,
I'm not sure of what can be relevant so I'll tell the whole s=
tory.
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
I have a router (that I got from my ISP) which allows the
connection
of a
pen/HDD by USB. That pen is shared on the network as a Window=
s
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
Share
folder.
In Windows 7 I can see all the files name correctly, but when=
I
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
mount
the
mount -t cifs //<local share ip-address>/<shared-folder> --ve=
rbose
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
-o
user=3Duser,pass=3D"",uid=3D1000,gid=3D1000
(there is no password)
All file names with special characters (like =C3=87=C3=A3=C3=B5=
=C3=A9...) have a
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
question
mark
in place of the accented character and I can't open the file =
or
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
folder, as
any command responds the file doesn't exist. This happens in
dolphin,
thunar
and in the command line with simple commands like cat.
I tried adding the following option without success
iocharset=3Dutf-8
iocharset=3Dutf-8,codepage=3Dcp437
iocharset=3Dutf-8,codepage=3Dcp850
iocharset=3Diso8859-1
This also happens if I access the share from my android devic=
e, so
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
I
was
convinced it was a problem related to old firmware (from the router).
However, recently I connected to the drive using smbclient an=
d the
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
file
names appeared correctly. I would like to mount this share fo=
lder
Post by Steve French
Post by adcromitus
Post by steve
Post by adcromitus
at
fstab,
and so smbclient is not a good solution.
Linux kernel 3.2.0-4-amd64
(Debian Wheezy)
mount.cifs version: 5.5
(smbclient version 4.1.11-Debian)
Server=3D[Samba 2.2.12]
So. Is there something else I can try?
Thanks in advance.
Hi
avi=C3=B1=C3=B3n
bar=C3=A7a
HTH,
Steve
Hy Steve,
So I used chroot to install the cifs-utils version from Debian ne=
xt
Post by Steve French
Post by adcromitus
release
(cifs-utils v.6.4), and the result was the same as with my curren=
t
Post by Steve French
Post by adcromitus
version.
Does the tcpdump helped in any way?
Thanks again.
Post by steve
Post by adcromitus
--
To unsubscribe from this list: send the line "unsubscribe
linux-cifs"
in
More majordomo info at http://vger.kernel.org/majordomo-info.=
html
Post by Steve French
--
Thanks,
Steve
--
Thanks,
Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs"=
in
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...