I have a samba share and it shows a weird filename in windows whenever a file or directory named ends in space or period
If I do
mkdir temp.
will look like TB5AMV~R in windows.
Is there a fix for this?
UPDATE: my config:
# 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
Samba doesn't consider
temp.
to be a valid DOS filename so it is mangling it as per the name mangling rules which defaults to on. You can turn name mangling off by settingmangled names = no
in your smb.conf file followed by restarting samba. Name mangling can be specified as a global or service specific parameter.