Samba +文件/目录以句点结束

我有一个samba共享,它显示一个奇怪的文件名在Windows中,每当一个文件或目录命名结束于空间或时期

如果我做

mkdir temp. 

在Windows中看起来像TB5AMV〜R。

有没有解决这个问题?

更新:我的configuration:

 # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command "testparm" # to check that you have not made any basic syntactic errors. # #======================= Global Settings ===================================== [global] smb ports = 445 workgroup = WORKGROUP server string = # There was a recent security issue in Samba (Feb 5 2010), a claimed # zero-day exploit that exploited an insecure default configuration. # According to an Ubuntu Forums post on the topic, the "wide links" option # now defaults to no. follow symlinks = yes wide links = yes unix extensions = no # added by roy for win7 - 2009-09-09 client ntlmv2 auth = yes # added by roy for recycle bin vfs object = recycle recycle:repository = .RecycleBin recycle:keeptree = yes recycle:exclude = *.tmp, *~, *.bak printcap name = /etc/printcap load printers = no cups options = raw log file = /var/log/samba/%m.log max log size = 50 security = user socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = no #============================ Share Definitions ============================== [homes] comment = Home Directories browseable = yes writable = yes [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writable = no printable = yes 

桑巴不考虑temp. 成为一个有效的DOS文件名,所以它按照默认为on的名字修改规则进行修改。 您可以通过设置closures名称

mangled names = no

在smb.conf文件中,然后重新启动samba。 名称修改可以被指定为全局或服务特定的参数。