[Vsftpd] enables samba and ftp to use the same encoding.

Source: Internet
Author: User
[Vsftpd] Let samba and ftp use the same encoding-Linux Enterprise Application-Linux server application information. The following is a detailed description. The FTP set up by vsftpd In Debian mainly serves Windows, so the file/folder name encoding is naturally GBK

Samba shares files in the office using the SMB protocol, which is UTF-8 encoded by default.

Use Samba to access the directory where FTP is located, garbled. Modify/etc/samba/smb. conf
Display charset = gbk
Unix charset = gbk
Dos charset = gbk

Normal, so we need to convert the original Samba file encoding to GBK

The convmv command is required. Apt-get install convmv.

All right, in the main directory of Samba: convmv-f utf8-t gbk -- notest-r ./
Convert the file/folder encoding. After the conversion is complete,/etc/init. d/samba restart

You can directly watch movies uploaded over FTP on Samba.

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.