sudo apt install vsftpd

 

 

 

# ufw allow ftp

 

 

put에 권한이 없다고 계속 나와서 생각해보니, 읽기 전용으로 접속된 것으로 여겨진다.

If you continue to think that the put is not authorized, it is thought to have been read-only.

 

#vi /etc/vsftpd.conf

이 라인의 주석을 해제한다.

Uncomment this line.

 

자기 계정 이외의 디렉토리로 갈 수 없도로 chroot_local_user=YES로 설정한다.

추가로 allow_writeable_chroot=YES 코드를 아래에 추가한다.

Set chroot_local_user = YES because you can not go to a directory other than your account.

In addition, allow_writeable_chroot = YES code is added below.

 

# systemctl enable vsftpd

부팅할 때 서비스를 자동실행하게 한다.

Allow the service to run automatically when booting.

 

# systemctl restart vsftpd
conf 설정 변경이 적용되도록 서비스를 다시 시작한다.

The service is restarted so that the conf setting change is applied.