我经常通过 samba 将文件传输到远程 Linux 机器。在一台特定的机器上,我传输的每个文件都损坏了。例如,示例文件“test.txt”:
testing testing
变成:
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
您可能注意到,每个字符都变成了空值。显然这是一个问题。我不确定问题是否出在 Samba 上,但以下是 /etc/samba/smb.conf 的基本内容:
[global]
workgroup = <groupname>
realm = <realmname.com>
security = ADS
kerberos method = system keytab
wins support = no
password server = <servername>
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
encrypt passwords = yes
local master = no
preferred master = no
netbios name = <netbiosname>
[homes]
comment = Home Directories
browseable = Yes
read only = No
public = yes
inherit acls = Yes
尝试从 Windows 复制到“homes”目录时会出现此问题。有人遇到过同样的问题吗?有解决方案吗?