1. 먼저 ftp 로컬로 접속이 가능한지 테스트를 하는 도중에 login fail이 떴다.


[root@localhost vsftpd]# ftp

ftp> open

(to) 220.116.179.196

Connected to 220.116.179.196 (220.116.179.196).

220 (vsFTPd 2.2.2)

Name (220.116.179.196:root): root

331 Please specify the password.

Password:

500 OOPS: cannot change directory:/root

Login failed.



2. setsebool 명령어를 이용하여 ftpd full access on 을 설정해준다.

[root@localhost vsftpd]# setsebool allow_ftpd_full_access on

[root@localhost vsftpd]# getsebool -a | grep ftp
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> on
allow_ftpd_use_cifs --> off

ftp> open
(to) 220.116.179.196
Connected to 220.116.179.196 (220.116.179.196).
220 (vsFTPd 2.2.2)
Name (220.116.179.196:root): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.

* setsebool 명령어란?
NAME
       setsebool - set SELinux boolean value

SYNOPSIS
       setsebool [ -PV] boolean value | bool1=val1 bool2=val2 ...

DESCRIPTION
       setsebool  sets  the current state of a particular SELinux boolean or a
       list of booleans to a given value. The value may be 1 or true or on  to
       enable the boolean, or 0 or false or off to disable it.

구글링해도 애매하게 나오길래 man page를 검색해보았다. setsebool 는 현재 상태를 설정해주는 특정 selinux의 boolean 이나 boolean 리스트이다. 1은 사용가능, 0은 사용불가능이다. selinux 정책으로 사용되는 기능들을 setsebool을 통하여 끄고 킬 수 있는 명령어이다.


3. FileZilla로 파일 업로드하기

[root@localhost centos]# ls -l

합계 5617564

-rw-r--r--. 1 root root 4467982336 2016-05-02 20:40 CentOS-6.5-x86_64-bin-DVD1.iso

-rw-r--r--. 1 root root 1284395008 2016-05-02 20:35 CentOS-6.5-x86_64-bin-DVD2.iso


윈도우에 있는 이미지 파일들이 /centos 안으로 잘들어갔다


성공!




'리눅스 초급 > FTP' 카테고리의 다른 글

[FTP](5) Passive mode와 Active mode  (0) 2016.05.02
[FTP](3) FTP 설치 및 설정  (0) 2016.04.28
[FTP](2) FTP 기본명령어  (0) 2016.04.28
[FTP](1) FTP의 이해  (0) 2016.04.28
Posted by 알 수 없는 사용자
,