오픈소스/네이버클라우드
#8 FTP 설정
실버카미
2022. 1. 5. 10:01
1. vsftpd 설치
[root@flas www]# ps -ax | grep vsftpd
6334 pts/1 S+ 0:00 grep --color=auto vsftpd
[root@flas www]# yum -y install vsftpd
...
Dependencies Resolved
========================================================================================================
Package Arch Version Repository Size
========================================================================================================
Installing:
vsftpd x86_64 3.0.2-29.el7_9 updates 173 k
Transaction Summary
========================================================================================================
Install 1 Package
Total download size: 173 k
Installed size: 353 k
Downloading packages:
vsftpd-3.0.2-29.el7_9.x86_64.rpm | 173 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : vsftpd-3.0.2-29.el7_9.x86_64 1/1
Verifying : vsftpd-3.0.2-29.el7_9.x86_64 1/1
Installed:
vsftpd.x86_64 0:3.0.2-29.el7_9
Complete!
2. FTP 설정
[root@flas www]# vi /etc/vsftpd/vsftpd.conf
...
#익명 허용 여부와, 허용 리스트 관리
anonymous_enable=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
[root@flas www]# vi /etc/vsftpd/chroot_list
...
#root 추가
root
[root@flas www]#
3. 데몬 시작
[root@flas www]# systemctl enable vsftpd
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
[root@flas www]# systemctl restart vsftpd
728x90