728x90
반응형

문 서 명 : FTP 553 Could not create file 에러 메시지 조치 방법

문 서 버 전 : Ver_1.0

문 서 구 분 :  Manual  □ Summary

작 성 일 : 2016 12 21

작 성 자 : 우리들의 삶

테 스 트 환 경 : RHEL 6.7, SELINUX

출 처 : 본인


본 문서는 Linux 환경에서 FTP 이용 시 업로드 디렉토리의 파일 쓰기 권한이 있는데도, 
파일 쓰기가 안될 경우 조치하는 방법에 대해 서술한다.


1. 증상(Client -> Server, FTP 이용 중)

ftp> put linux.sh

local: linux.sh remote: linux.sh

200 PORT command successful. Consider using PASV.

553 Could not create file.

 

 

 

 2. 조치 방법
먼저 업로드 디렉터리에서 FTP 접근한 계정의 쓰기 권한이 있는지 확인한다.
대부분 FTP 접근 계정의 권한 문제로 디렉터리의 권한을 주거나, 계정을 변경하면 될 문제지만, 이 경우가 아닐 경우

selinux 설정을 확인한다.

[root@test]# cat /etc/sysconfig/selinux

 

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#     enforcing - SELinux security policy is enforced.

#     permissive - SELinux prints warnings instead of enforcing.

#     disabled - No SELinux policy is loaded.

SELINUX=enforcing

# SELINUXTYPE= can take one of these two values:

#     targeted - Targeted processes are protected,

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

 
이 경우 enforcing 의 구문을 disabled 로 변경하고 재부팅을 해야 적용이 되지만,
대부분의 경우 재부팅이 힘들 것이다. 이럴 경우 다음과 같이 ftpd 데몬에 대해 엑세스 권한을 준다.

 

[root@test]# setsebool -P allow_ftpd_full_access on



FTP 553 Could not create file 에러. 553 Could not create file, vsftpd, vsftpd error, ftp 쓰기 에러

728x90
반응형

+ Recent posts