Lynn Danielson
2001-Apr-16 16:24 UTC
Having problems with files that have the ':' character
Ryan Korock wrote:> > Some of the files on my linux box have the character ':' in their name. > Viewing them over the network via smb, samba seems to replace the ':' with a '~'. > > The real problem is that these files cannot be copied/moved at all (error messages appear). > > Has anyone else encountered this issue? And is there a fix or workaround? > (please don't tell me I need to rename all my files ;) ).The tilde is the default mangling character which is why your seeing the translation. The mangled map parameter might be able to solve your problem, but I haven't worked with it enough to be sure. Lynn Danielson
Some of the files on my linux box have the character ':' in their name. Viewing them over the network via smb, samba seems to replace the ':' with a '~'. The real problem is that these files cannot be copied/moved at all (error messages appear). Has anyone else encountered this issue? And is there a fix or workaround? (please don't tell me I need to rename all my files ;) ). Much Appreciated, -Ryan I am running v2.0.5a on a redhat box with kernel 2.2.12-20, and connecting to it via a win2000 server box.
David W. Chapman Jr.
2001-Apr-16 16:54 UTC
Having problems with files that have the ':' character
> Some of the files on my linux box have the character ':' in their name.Viewing them over the network via smb, samba seems to replace the ':' with a '~'.> > The real problem is that these files cannot be copied/moved at all (errormessages appear).> > Has anyone else encountered this issue? And is there a fix or workaround?(please don't tell me I need to rename all my files ;) ). I'm not going to tell you you have to rename your files, but I am going to let you know that the ':' character is not a valid windows filename character, so I think you can deduce what you need from that, unless there is a workaround in samba for this.
MCCALL,DON (HP-USA,ex1)
2001-Apr-16 17:24 UTC
Having problems with files that have the ':' character
Hello Ryan, Believe the problem is in the name mangling, and the 'illegal' character ":"; What happens is that because of samba's name mangling capability, it will display the file named (for instance) hello:1.txt as HELLO~6E.TXT. So far so good. Problem comes in copying it; Samba gets the request (NT Create&X) to create the file HELLO~6E.TXT; because of the ~ character it invokes its name UN mangling routines, and comes up with the original name "hello:1.txt"; OOPS - this is an illegal name for NT Create & X, and part of the code that handles the reply to an NT Create & X checks filenames for illegal characters (which : IS, for a pc client) so the attempt to create the copy fails. BTW, if you try to create a file named "hello:1.txt" using windows explorer, it will fail to do so as well on a local disk, telling you a list of characters that are illegal in filenames... NOW - how do you work aound this??? I would suggest that you don't even try. If you have files that need to be accessed regularly from PC's, you should ensure that your filenaming convention on the Linux box for whatever application is generating these files conforms to the naming convention the pc's must use. Sorry, Don -----Original Message----- From: Ryan Korock [mailto:r.korock@f5.com] Sent: Monday, April 16, 2001 12:35 PM To: samba@lists.samba.org Subject: Having problems with files that have the ':' character Some of the files on my linux box have the character ':' in their name. Viewing them over the network via smb, samba seems to replace the ':' with a '~'. The real problem is that these files cannot be copied/moved at all (error messages appear). Has anyone else encountered this issue? And is there a fix or workaround? (please don't tell me I need to rename all my files ;) ). Much Appreciated, -Ryan I am running v2.0.5a on a redhat box with kernel 2.2.12-20, and connecting to it via a win2000 server box. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Hi!> Some of the files on my linux box have the character ':' in their name. > Viewing them over the network via smb, samba seems to replace the ':' with > a '~'.I having that very same problem. I run a network of abot 100 computers, half win98 half Macs. Well it seems that Macs in particular cause that problem and when it comes to share documents between computers using a common share, somtimes it's a mess. Since it seems there is no remedy to recover from the character ':' is there a way to prevent Samba to use it? Thanx. M?rio Gamito pt is for Portugal