proftpd 설치 (ftp 설치)
최신버전은 http://proftpd.org 참조.
#cd /usr/local/src
#wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3d.tar.gz
tar xvjf proxxxxxx
다운을 다 받았으면 압축을 풀어서 설치를 합니다.
#tar zxvf proftpd-1.3.3d.tar.gz
다풀은 이후에 proftpd-1.3.3d 폴더에 들어가 설치를 하자.
#./configure
첫번째설치가 완료 되었다..두번째 설치를 하자.
#make && make install
이젠 설치가 완료되었다.. 셋팅만 하면된다.
proftpd.conf -> /usr/local/etc -> 셋팅파일
proftpd -> /usr/local/sbin -> 실행파일
proftpd.conf 파일을 수정해보자.
#vi proftpd.conf
#############################################################
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "lovename"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Don't use IPv6 support by default.
UseIPv6 off
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Set the user and group under which the server will run.
User nobody
Group nobody -> nogroup 에서 꼭 바꿀것.
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~ !wheel <- 루트계정외에 다른계정들은 다른폴더 이동불가
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
###############################################################
여기까지가 proftpd.conf 설정방법입니다.. 잘 모르겠스면 다운받아서
보시기 바랍니다.
-------------------------------------------------
proftpd를 설치 후 데몬 자동실행방법 ----
-------------------------------------------------
압축푼 폴더의 proftpd-1.3.3d/contrib/dist/rpm
proftpd.init.d의 vi로 열어 다음과 같이 확인해 준다.
이대로 설치 안했을경우 실행 파일이 어딨는지 정확하게 경로를 써준다.
PATH="$PATH:/usr/local/sbin"
파일 복사 후 권한 부여후 활성화 시킨다.
# cp proftpd.init.d /etc/rc.d/init.d/proftpd
# chmod 755 /etc/rc.d/init.d/proftpd
# chkconfig --add proftpd
# chkconfig --list | grep proftpd
proftpd 0:해제 1:해제 2:해제 3:활성 4:활성 5:활성 6:해제
# chkconfig --level 2345 proftpd on
proftpd 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제
///////////////////////////////////////////////////////////////////////////////////////////////////////////
rpm 설치하려고 할때 패키지 찾기가 워낙 쉬운게 아니라서 곤란합니다.
yum 도 없고 해서, 새로운 레포를 추가 합니다.
기본 레포 파일을 vi 로 열어서
맨 밑에
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
추가하고
# rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
#
rpm --import RPM-GPG-KEY.dag.txt
# yum -y install proftpd
'리눅스 > 리눅스설정방법' 카테고리의 다른 글
ssh 한글깨짐현상 고치기. (12) | 2011.03.17 |
---|---|
DNS ( Domain Name Server ) 설치. (55712) | 2011.03.04 |
리눅스백업 ( rsync ) (1) | 2011.02.19 |
quota (사용자 하드용량 정하기) (3520) | 2011.02.17 |
LVM HDD 만들기. (39) | 2011.02.16 |