[출처] Fedora Core 4의 vsftp 설정하기 (standalone)|작성자 별종제쿠
참고 :
링크 만들기 :
ln -s /etc/vsftpd/vsftpd.conf /etc/vsftpd
standard 로 실행 :
chkconfig --del vsftpd-xinetd (xinet으로 실행되지 않도록)
chkconfig vsftpd on (standalone으로 실행되도록)
vi /etc/xinetd.d/vsftpd-xinetd (파일생성)
service ftp
{
disable = yes
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
server_args = /etc/vsftpd/vsftpd.conf
nice = 10
}
vsftpd.conf 설정 :
# Access rights
write_enable=YES
anonymous_enable=YES
local_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=NO
chroot_local_user=YES
# Security
anon_world_readable_only=YES
connect_from_port_20=YES
hide_ids=NO
pasv_min_port=50000
pasv_max_port=60000
# Features
xferlog_enable=YES
ls_recurse_enable=NO
ascii_download_enable=NO
async_abor_enable=YES
# Performance
one_process_model=YES
idle_session_timeout=120
data_connection_timeout=300
accept_timeout=60
connect_timeout=60
anon_max_rate=50000
dual_log_enable=YES
# JeCU7
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
listen_port=21
#listen_port=8021
pasv_enable=YES
one_process_model=NO
재실행 :
/etc/rc.d/init.d/xinetd restart
/etc/rc.d/init.d/vsftpd restart
테스트 :
ftp localhost
sftp localhost
- from ㅈ ㅔ쿠 -
'OS' 카테고리의 다른 글
[Linux] IP세팅 (0) | 2011.10.18 |
---|---|
[솔라리스9] PC용 솔라리스9 개발 환경설정 (0) | 2011.10.18 |
[linux] sshd connection closed되는 경우 (0) | 2011.10.18 |
[linux] ssh에 root접속 허용 (0) | 2011.10.18 |
Fedora에서 IPv6 Telnet, FTP 서버 설정 (0) | 2011.10.18 |