For more information about samba and shell (ftp), see Linux Enterprise Application-Linux server application. On a Linux server, the following problems may occur:
(1) files uploaded through samba may sometimes fail to be displayed in ftp or shell.
(2) At the same time, files uploaded through ftp cannot be normally displayed in samba. Why?
The reason is that their character set is different.
Solution:
Step 1: Check whether the shell language is Chinese.
Echo $ LANG
If it is displayed as zh_CN. *****, there is basically no problem. You can skip this step. If it is en_US. *****, you must change it to Chinese by setting it in/etc/sysconfig/i18n.
LANG = "zh_CN.GBK", LANG = "zh_CN.GB2312", LANG = "zh_CN.GB18030" or LANG = "zh_CN.UTF-8"
Or you can directly use export LANG = zh_CN.GBK. For more information, see the linux settings.
Step 2 is also the most critical step. It is to change the smb. conf settings: add the code in the [global] domain