Chinese problems in samba and shell (ftp)

Source: Internet
Author: User
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
QUOTE:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.