Raymond Blum
2005-Sep-25 22:18 UTC
[Samba] Windows special chars in filenames, cannot access files
Hi I am running Samba v3.0.20-2 on Redhat Linux. to get right to the point: THE PROBLEM: I am using mount with type=smbfs to mount a WIndows XP share. The share has filenames with special chars (the Registered symbol (r)) . This filename appears in Linux directory listings with a "r" in place of the (r) char. If I try to access the file, I get a "File not found". i.e. "ls -l" shows filename "XXXr.url" but if I try "cat XXXr.url" I get the msg "XXXr.url no such file or directory" WHAT I HAVE TRIED: I have tried setting the dos charset and unix charset both to UTF-8 with no results, likewise to the DOS default CP850 Anyone know how to address this? It would be an acceptable solution to substitute chars in the filename, I just need to be able to access/ copy it. Thanks ---raymond
Raymond Blum
2005-Sep-26 02:15 UTC
[Samba] Windows special chars in filenames, cannot access files
Thanks but NG ... I need to copy any such files from a shell script on the Unix side as they appear On Sep 25, 2005, at 7:53 PM, Gary Dale wrote:> Try doing cat XXX?.url. To rename it, try mv XXX?.url XXX2.url. > > Alternatively, try using a graphical file manager to access the > files. They should allow you to rename or copy the files. > > Or you can try renaming them on the Windows side. > > > > Raymond Blum wrote: > > >> Hi >> I am running Samba v3.0.20-2 on Redhat Linux. >> to get right to the point: >> THE PROBLEM: >> I am using mount with type=smbfs to mount a WIndows XP share. >> The share has filenames with special chars (the Registered symbol >> (r)) . This filename appears in Linux directory listings with a >> "r" in place of the (r) char. If I try to access the file, I get >> a "File not found". >> i.e. >> "ls -l" shows filename "XXXr.url" >> but if I try "cat XXXr.url" I get the msg "XXXr.url no such file >> or directory" >> >> WHAT I HAVE TRIED: >> I have tried setting the dos charset and unix charset both to >> UTF-8 with no results, likewise to the DOS default CP850 >> >> Anyone know how to address this? It would be an acceptable >> solution to substitute chars in the filename, I just need to be >> able to access/ copy it. >> >> Thanks >> ---raymond >> > >
Andrew Bartlett
2005-Sep-27 04:01 UTC
[Samba] Windows special chars in filenames, cannot access files
On Sun, 2005-09-25 at 18:18 -0400, Raymond Blum wrote:> Hi > I am running Samba v3.0.20-2 on Redhat Linux. > to get right to the point: > THE PROBLEM: > I am using mount with type=smbfs to mount a WIndows XP share. The > share has filenames with special chars (the Registered symbol (r)) . > This filename appears in Linux directory listings with a "r" in place > of the (r) char. If I try to access the file, I get a "File not found". > i.e. > "ls -l" shows filename "XXXr.url" > but if I try "cat XXXr.url" I get the msg "XXXr.url no such file or > directory" > > WHAT I HAVE TRIED: > I have tried setting the dos charset and unix charset both to UTF-8 > with no results, likewise to the DOS default CP850Try using the CIFS VFS, as it can really handle unicode, where this is just another character. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Samba Developer, SuSE Labs, Novell Inc. http://suse.de Authentication Developer, Samba Team http://samba.org Student Network Administrator, Hawker College http://hawkerc.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20050927/bb89af7a/attachment.bin