우분투에서 제일 많이 사용하는 FTP 서버가 바로 vsftpd 인것 같습니다.
그럼, 설치를 한번 해볼까요?
$sudo -i
- root 권한을 갖는다.
$apt-get install vsftpd
- 설치한 후 FTP 서버가 자동으로 실행합니다.
$cd /etc
- vsftpd.conf 파일이 /etc 폴더에 저장되어 이동한다.
$vi vsftpd.conf
- vi 를 이용하여 편집에 들어간다.
들어가면 아래 3부분을 수정한다.
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
- 위에 YES를 NO로 변경
#
# Uncomment this to allow local users to log in.
#local_enable=YES
- 맨앞의 "#" 을 제거
#
# Uncomment this to enable any form of FTP write command.
#write_enable=YES
- 맨앞의 "#" 을 제거
그럼 아래처럼 수정된다.
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
수정이 완료되었으면, FTP를 재실행 하자.
$/etc/init.d/vsftpd restart
이렇게 하고 일단, 접속을 해보자.
root 계정도 좋고, user 계정도 좋다. 일단 해보자.
그런데, user 계정은 들어가 지는데, root 계정은 들어가 지지 않을 것이다.
파일은 또 하나 수정해야 한다.
$vi ftpusers
- 접속 제한 ftp 사용자 목록이 나온다.
# /etc/ftpusers: list of users disallowed FTP access. See ftpusers(5).
root
daemon
bin
sys
sync
games
man
lp
news
uucp
nobody
목록 제위에 "root" 라고 되어 있다. 여기서 root 를 제거 한다.
수정을 하였으면, 또 다시 FTP를 재실행 한다.
$/etc/init.d/vsftpd restart
자 그럼 정상적으로 접속이 될것이다.
출처 : http://www.ubuntu.or.kr/viewtopic.php?p=15664
[출처] 우분투 ftp 설치하기 (vsftp)|작성자 돌댕
'↘ [Linux] > ↘ [Command]' 카테고리의 다른 글
우분투 방화벽 설정 (0) | 2013.04.16 |
---|---|
[본문스크랩] tar 명령어 사용법 및 예제, gz, bz2 압축 및 해제 (0) | 2013.04.16 |