Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux集群 > Architecture > » 正文

Setup vsftpd service

来源: liuy5277 分享至:

OS:  Ubuntu10.10 x86_64 server

ISO:  http://mirrors.163.com/ubuntu-releases/10.10/ubuntu-10.10-server-amd64.iso

1. Installvsftp

linuxdba--> sudo apt-get install vsftpd

2. Create ftp root directory.

linuxdba-->sudo mkdir /var/ftp

3. create thespecified user

linuxdba--> sudo dd.html' target='_blank'>useradd ftptest  -d /var/ftp

linuxdba--> sudo passwd ftptest

4. Edit theconfig file.

linuxdba--> more /etc/vsftpd.conf | grep -v "^#"

listen=YES

anonymous_enable=NO

local_enable=YES

write_enable=YES

local_umask=022

dirmessage_enable=YES

use_localtime=YES

xferlog_enable=YES

connect_from_port_20=YES

chroot_local_user=YES

chroot_list_file=/etc/vsftpd.chroot_list

secure_chroot_dir=/var/run/vsftpd/empty

pam_service_name=vsftpd

rsa_cert_file=/etc/ssl/private/vsftpd.pem

5. Provide alist of local users who are placed in their home directory.

linuxdba-->sudo touch /etc/vsftpd.chroot.list

linuxdba--> sudo echo "ftptest" > /etc/vsftpd.chroot.list

6. Restartvsftpd service.

linuxdba--> sudo service vsftpd restart


Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史