CentOs6.5에 vsftp 설치 및 설정

2309 단어
vsftp 설치 편
 
  
# vsftpd
yum -y install vsftpd
#
service vsftpd start
#
chkconfig vsftpd on

2. vsftp 관련 명령의 서비스 편
 
  
# ftp
service vsftpd start
# ftp
service vsftpd status 
# ftp
service vsftpd restart
# ftp
service vsftpd stop

 
vsftp 설정
 
  
# vsftpd
vim /etc/vsftpd/vsftpd.conf 
# anonymous
anonymous_enable=NO
#
local_enable=YES
# ( , )
write_enable=YES
# umask
local_umask=022
# /var/log/vsftpd.log
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=NO
# ASCII
ascii_upload_enable=YES 
# ASCII
ascii_download_enable=YES
# 20
connect_from_port_20=YES
#
ftpd_banner=Welcome to use my test ftp server.
#
# chroot_local_user YES, chroot,
# home , 。
# chroot_list_enable YES, chroot 。
# ★ : chroot_local_user YES, chroot_list_file
# , chroot ( )
# ★ : chroot_local_user NO, chroot_list_file
# , chroot ( )
chroot_list_enable=YES
# touch /etc/vsftpd/chroot_list
chroot_list_file=/etc/vsftpd/chroot_list
use_localtime=YES
# standalone ipv4
listen=YES
# PAM , vsftpd, vsftpd pam ,
# /etc/pam.d/vsftpd, pam ,/etc/vsftpd/ftpusers
# ftp , root ,
# , /etc/vsftpd/ftpusers 。
pam_service_name=vsftpd
# vsftpd
service vsftpd restart

4. vsftp 사용자 편
 
  
#
useradd -d /home/webapps/www.xxx.com -s /sbin/nologin -M hzh1990
#
chown -R username /home/webapps/www.xxx.com/public
#
chown -R 777  /home/webapps/www.xxx.com/public
#
passwd hzh1990 -> ->

좋은 웹페이지 즐겨찾기