`
pipal
  • 浏览: 166156 次
  • 性别: Icon_minigender_1
  • 来自: 南宁
社区版块
存档分类
最新评论

Ubuntu gutsy下vsftp的配置(解决了中文乱码问题)

阅读更多
我在Linux下用的ftp服务器是VSFTP,这东东真是让人又爱又恨,安装及配置起来是挺简单的,但问题是,它有中文乱码问题,尝试了N久之后,现在终于勉强算是解决了。在此要感谢网上的牛人,那位大牛做了个包,用那东东可以顺利解决中文问题,在WINDOWS下登录FTP中文不再是乱码了。不过有点小问题是,在UTF8机子下登录FTP的这乱码还存在,真让人讨厌,下面进入正题。
首先下载附件里的vsftpd-encoding_2.0.4-0ubuntu4_i386.deb,请把后缀.rar给去掉,因为论坛不允许上传其它格式的文件 ,然后安装,
sudo dpkg -i vsftpd-encoding_2.0.4-0ubuntu4_i386.deb
呵呵,安装很简单。
现在来看看怎么配置:
sudo gedit /etc/vsftpd.conf&
下面是我的配置内容,注释里很清楚了,我不多说什么了。

# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories.  See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
chroot_local_user=NO
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
#
# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default.  These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty.  Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

#===============add by zengXiangSheng 2008/12/03
##############to specify all the users 's login dir
local_root=/home/ftp
####FTP max connect number
#Max_clients=200
#######the max connect number for per ip
#Max_per_ip=4
####=====隐藏文件的所有者和组信息,匿名用户看到的文件的所有者和组全变为ftp
hide_ids=YES
#======anonymous login without asking password========
no_anon_password=YES

#the root of anonymous
anon_root=/home/ftp/anon
#anon_root=/media/sda9/linuxFtp
#anon_world_readable_only=NO
###########################








########################encoding patch setting########################
charset_filter_enable=YES
charset_client=GBK
charset_server=UTF8
分享到:
评论

相关推荐

    ubuntu常见问题及解决

    ### Ubuntu常见问题及解决方案 #### 一、关于Ubuntu ##### 1.1 发行版和版本号 **问题**: Ubuntu的版本号是如何确定的?下一个版本的Ubuntu版本号将会是多少? **解答**: Ubuntu的版本号是由该版本系统发行时间...

    Ubuntu配置Java+Eclipse+MyEclipse环境

    本文将详细介绍如何在Ubuntu 7.10 Gutsy版本上安装和配置这些组件。 首先,我们需要安装Java环境。在Ubuntu下,可以通过使用apt-get命令来安装Java 6的JRE(Java运行时环境)和SDK(软件开发工具包)。在终端中输入...

    硬盘安装Ubuntu 7.10

    此方法适用于那些希望在没有光驱或者USB驱动器的情况下安装Ubuntu的用户。硬盘安装不仅能够节省资源,还能在一定程度上提高安装速度。 #### 二、下载必要的安装文件 ##### 1. 下载光盘映像文件 - 首先,您需要下载...

    virtualbox安装

    ### VirtualBox在Linux下的安装与配置 #### 一、引言 随着技术的发展和个人需求的多样化,越来越多的用户需要在Linux环境下使用Windows应用程序或者进行软件测试等操作。虚拟化技术应运而生,成为了解决这类问题的...

    Ubuntu linux 基础.pdf

    - **Live CD**:用户可以在不安装系统的情况下通过Live CD体验Ubuntu的功能。 - **GUI安装程序**:提供了一个图形化的安装过程,类似于Windows的安装方式,降低了学习曲线。 - **软件中心**:一个集中的平台,用于...

    ubuntu下编译

    以下是在Ubuntu 7.10(Gutsy Gibbon)上编译Android的主要步骤和注意事项: 1. **概述**: Android开源项目发布后,用户可以在Ubuntu 7.10这样的Linux发行版上自行编译系统。相比于使用OpenEmbedded的openmoko和...

    UbuntuLinux软件源详解.pdf

    使用 Ubuntu Linux 软件源非常简单,只需要记住正确的软件名,并确定在 Ubuntu 下肯定有的软件,然后使用命令来安装软件。例如,如果要安装 EVA 软件,可以输入命令:sudo apt-get install eva。 如何添加 Ubuntu ...

    ubuntu7_10安装VMware Tools

    标题“Ubuntu 7.10 安装 VMware Tools”涉及的是在Ubuntu 7.10(Gutsy Gibbon)操作系统上安装VMware Tools的过程。VMware Tools是VMware为虚拟机提供的一套优化工具,它能提升虚拟机的性能,并提供更好的硬件兼容性...

    linux学习笔记-初学者必备

    在Linux系统中,尤其是Ubuntu这样的发行版,为了确保软件包的更新与安装,我们需要正确地配置系统的软件源。给定的内容显示了几个不同的软件源地址: 1. **官方主仓库**:`deb http://ubuntu.cn99.com/ubuntu gutsy...

    虚拟机中 为 ubuntu7.10 安装 VMware-Tools

    在虚拟机环境中,为了提升Ubuntu 7.10(代号Gutsy Gibbon)的性能、稳定性和用户体验,安装VMware-Tools是一项至关重要的步骤。以下是对标题、描述及部分给定内容中所涉及的知识点的详细阐述: ### 虚拟机中为...

    ubuntu-7.10-jeos-i386最小的精简版系统,针对虚拟机进行优化(155M).zip

    Ubuntu 7.10,代号为"Gutsy Gibbon",发布于2007年,包含了当时最新的技术和安全更新。尽管该版本已经过时,但理解它的历史背景有助于我们了解Ubuntu的发展历程以及它在技术上的演变。 描述中的“针对虚拟机进行...

    虚拟机中Ubuntu的安装.pdf

    Ubuntu的版本号包括6.06 LTS、7.04、7.10 Tribe 4、Gutsy Gibbon等,这些都代表了Ubuntu的特定发行版。Ubuntu操作系统基于Linux内核,并采纳了GNU项目和自由软件基金会所制定的GPL许可证。 ### Linux发行版和桌面...

    Ubuntu部落 基本教程

    - **当前版本**: 本文档未明确给出具体的版本号,但根据文档的编写时间(2007年),可以推测当时最新的稳定版本可能是 Ubuntu 7.10(Gutsy Gibbon)。 - **特点**: - 免费且开源:基于GNU/Linux操作系统。 - 用户...

    《Full Circle》中文版第七期

    - **论坛交流:** 访问Ubuntu中文论坛(如http://forum.ubuntu.org.cn/),与其他用户交流问题和解决方案。 - **投稿文章:** 如果您有兴趣撰写关于Ubuntu的文章,可以遵循社区的投稿指南提交文章。文章应与Ubuntu或...

    ic610以及mmsim61的安装

    在Ubuntu 7.10(Gutsy Gibbon)上,由于其内核和动态链接库glibc的版本较高,直接安装ic5141可能会遇到兼容性问题。ic5141需要的是Linuxthreads线程机制,而Ubuntu 7.10使用的是NPTL(Native POSIX Thread Library)...

Global site tag (gtag.js) - Google Analytics