LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba and filenames with : or ? (https://www.linuxquestions.org/questions/linux-server-73/samba-and-filenames-with-or-912006/)

cepheus11 11-05-2011 07:54 AM

Samba and filenames with : or ?
 
Hello,

I have an HTPC with XBMC, accessing some samba shares from another PC. Both are linux. I cannot access files with "?" or ":" in the name: They are shown as 0 byte an as having no access rights.

They used to work fine some time ago, but I don't know if it was a kernel or samba update which broke this. It's not XBMC related, because Krusader on the sharing machine has the same problems when I access the share as "smb://localhost/...".

I have tried the following in smb.conf:

Code:

  unix extensions = yes
  case sensitive = auto

# Keep file names with : and ? intact
  mangled names=no

I do NOT want filename mangling because I want to see the actual filename and not some 8.3 "garbage" for long filenames.

Is there a possibility to access long filenames with "?" or ":" using samba? Or do I have to use another protocol?

Thanks

JSkywalker 11-05-2011 08:35 AM

Those characters are reserved, so you should not use them in actual filenames
Reserved_characters_and_words

cepheus11 11-05-2011 09:07 AM

They are allowed in Unix, and both affected machines are (Gentoo) Linux. Also, it worked some time ago. I am not aware of any config changes, other than what I tried to make it work again. However, there have been several updates of every software involved.

JSkywalker 11-05-2011 09:33 AM

from: http://en.wikipedia.org/wiki/Samba_%28software%29
Quote:

Samba is a free software re-implementation,...... Samba provides file
and print services for various Microsoft Windows clients and can .......
On a Windows computer the ':' and the '?' are not allowed characters.....


All times are GMT -5. The time now is 12:18 AM.