1.包
vsftpd-2.2.2-6.el6.i686 //very secure FTP Daemon
2.配置文件目录: # /etc/vsftpd
[root@acer vsftpd]# ll -h
total 20K
-rw-------. 1 root root 125 May 26 2010 ftpusers
-rw-------. 1 root root 361 May 26 2010 user_list
-rw-------. 1 root root 4.4K Jun 21 12:11 vsftpd.conf
-rwxr--r--. 1 root root 338 May 26 2010 vsftpd_conf_migrate.sh
[root@acer vsftpd]# pwd
/etc/vsftpd
3.vim vsftpd.conf //rhel6.0改的东西不多
# 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_local_user=YES //用户限制在默认目录下(chroot)
#chroot_list_enable=YES //是否将某些实体用户限制在默认目录下 yes用户无法离开默认目录
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
//所有集中具有chroot 涉及到change root 限制在/var/ftp 的目录下
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list //把某些实体用户限制在他们的默认目录下与chroot相关
#
# 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
//关于匿名用户登录设置
#
# 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 //建立目录的权限设置
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction(连接词)
# with the listen_ipv6 directive.
listen=YES //ftp用得不多时-super daemon 管理 listen = NO
#
# 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
#
4.# cd /var/ftp/pub
挂一些东西
5.#firfox ftp:// your own ip num
阅读(938) | 评论(0) | 转发(0) |