2015.09.18 15:19
cd /usr/local/src wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.5a.tar.gz tar xvfz proftpd-1.3.5a.tar.gz cd proftpd-1.3.5a ./configure --prefix=/usr/local/proftpd --enable-auto-shadow make make install |
vi /usr/local/proftpd/etc/proftpd.conf #ServerType standalone <= xinetd 데몬을 이용할 것이기때문에 아래와 같이 사용 ServerType inetd #MaxInstances 30 <= xinetd 파일에서 설정을 할 것이므로 주석처리 # Set the user and group under which the server will run. #User nobody <= User 와 Group 은 주석처리 후 아래와 같이 설정 #Group nogroup # Set the user and group under which the server will run. User nobody Group nobody #<Anonymous ~ftp> User ftp <= 익명 접속을 허용하지 않을 것이므로 주석처리 Group ftp #<Anonymous ~ftp> # User ftp # Group ftp 이후 내용들을 보면 대부분이 Anonymous 관련된 내용이므로 Anonymous 를 허용하지 않으려면 모두 주석처리를 하면 된다. |
vi /etc/xinetd.d/proftpd service ftp { flags = REUSE socket_type = stream instances = 10 wait = no user = root server = /usr/local/proftpd/sbin/in.proftpd log_on_success = HOST PID log_on_failure = HOST disable = no } |
/etc/init.d/xinetd restart netstat -lnp |