[파일] proftpd 소스 설치 방법
===========================================================
FTP Source Download
===========================================================
[root@test /usr/local/src]# ftp ftp.proftpd.org
Connected to ftp.proftpd.org.
220-This is the main distribution site for ProFTPD. Rather than downloading
220-directly from this site, we STRONGLY recommend you use a mirror.
This site
;
;
;
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
drwxr-xr-x 3 ftp ftp 1024 Mar 15 10:36 contrib
drwxr-xr-x 4 ftp ftp 1024 May 21 07:53 devel
drwxr-xr-x 4 ftp ftp 2048 Aug 17 17:43 distrib
drwxr-xr-x 5 ftp ftp 1024 Feb 27 2001 historic
drwxr-xr-x 2 ftp ftp 1024 Mar 15 10:36 patches
226 Transfer complete.
ftp> cd distrib
250 CWD command successful.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
drwxr-xr-x 5 ftp ftp 1024 Jul 9 15:13 packages
lrwxrwxrwx 1 ftp ftp 28 Mar 1 2001 proftpd-1.2.1.tar.bz2
lrwxrwxrwx 1 ftp ftp 31 Mar 1 2001 proftpd-1.2.1.tar.gz.md5
lrwxrwxrwx 1 ftp ftp 28 Aug 17 17:43 proftpd-1.2.2.tar.bz2
lrwxrwxrwx 1 ftp ftp 32 Aug 17 17:43 proftpd-1.2.2.tar.bz2.asc
lrwxrwxrwx 1 ftp ftp 32 Aug 17 17:43 proftpd-1.2.2.tar.bz2.md5
lrwxrwxrwx 1 ftp ftp 27 Aug 17 17:43 proftpd-1.2.2.tar.gz
lrwxrwxrwx 1 ftp ftp 31 Aug 17 17:43 proftpd-1.2.2.tar.gz.asc
lrwxrwxrwx 1 ftp ftp 31 Aug 17 17:43 proftpd-1.2.2.tar.gz.md5
lrwxrwxrwx 1 ftp ftp 31 Mar 24 20:31 proftpd-1.2.2rc1.tar.bz2
lrwxrwxrwx 1 ftp ftp 35 Mar 24 20:31 proftpd-1.2.2rc1.tar.bz2.asc
;
;
;
226 Transfer complete.
ftp> bin
200 Type set to I.
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Archive Extract
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ftp> get proftpd-1.2.2.tar.gz
local: proftpd-1.2.2.tar.gz remote: proftpd-1.2.2.tar.gz
200 PORT command successful.
150 Opening BINARY mode data connection for proftpd-1.2.2.tar.gz (590646 bytes).
###############################################################
###############################################################
###############################################################
226 Transfer complete.
590646 bytes received in 7.7 seconds (75 Kbytes/s)
ftp> bye
l221 Goodbye.
[root@test /usr/local/src]# ls
proftpd-1.2.2.tar.gz
[root@test /usr/local/src]# gzip -d proftpd-1.2.2.tar.gz
[root@test /usr/local/src]# tar xvf proftpd-1.2.2.tar
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Source Configure and Build
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[root@test /usr/local/src]# cd proftpd-1.2.2
[root@test /usr/local/src/proftpd-1.2.2]# ./configure –prefix=/etc/proftpd \\
> –enable-pam=no –enable-shadow
[root@test /usr/local/src/proftpd-1.2.2]# make
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Compiled Binary Install
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[root@test /usr/local/src/proftpd-1.2.2]# make install
;
;
/usr/bin/install -c -s -o root -g root -m 0755 proftpd /etc/proftpd/sbin/proftpd
if [ -f /etc/proftpd/sbin/in.proftpd ] ; then \\
rm -f /etc/proftpd/sbin/in.proftpd ; \\
fi
ln -s proftpd /etc/proftpd/sbin/in.proftpd
/usr/bin/install -c -s -o root -g root -m 0755 ftpcount /etc/proftpd/bin/ftpcount
/usr/bin/install -c -s -o root -g root -m 0755 ftpwho /etc/proftpd/bin/ftpwho
/usr/bin/install -c -s -o root -g root -m 0755 ftpshut /etc/proftpd/sbin/ftpshut
if [ ! -f /etc/proftpd/etc/proftpd.conf ] ; then \\
/usr/bin/install -c -o root -g root -m 0644 \\
./sample-configurations/basic.conf \\
/etc/proftpd/etc/proftpd.conf ; \\
fi
/usr/bin/install -c -o root -g root -m 0644 ./src/proftpd.8 /etc/proftpd/man/man8
/usr/bin/install -c -o root -g root -m 0644 ./src/ftpshut.8 /etc/proftpd/man/man8
/usr/bin/install -c -o root -g root -m 0644 ./src/ftpwho.1 /etc/proftpd/man/man1
/usr/bin/install -c -o root -g root -m 0644 ./src/ftpcount.1 /etc/proftpd/man/man1
/usr/bin/install -c -o root -g root -m 0644 ./src/xferlog.5 /etc/proftpd/man/man5
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Env setting for manual page
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[root@test /usr/local/src/proftpd-1.2.2]# man ftpshut
No manual entry for ftpshut
# export MANPATH=$MANPATH:/etc/proftpd/man
# export MANPATH=$MANPATH:/etc/proftpd/man >> /etc/profile
# . /etc/profile
# man ftpshut
;
;
; q
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Editing config file
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[root@test /usr/local/src/proftpd-1.2.2]# cd /etc/proftpd/etc
[root@test /etc/proftpd/etc]# cat 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 “TEST FTP Server”
ServerType inetd
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# 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 that the server normally runs at.
User nobody
Group nobody
# Normally, we want files to be overwriteable.
AllowOverwrite on
# A basic anonymous configuration, no upload directories.
#
# 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
# DisplayFirstChdir .message
# # Limit WRITE everywhere in the anonymous chroot
#
# DenyAll
#
#
==================================================================
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Moving Binary into system deamon directory
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[root@test /etc/proftpd/etc]# cd /etc/proftpd/sbin
[root@test /etc/proftpd/sbin]# cp proftpd /usr/sbin
cp: `/usr/sbin/proftpd’를 겹쳐씁니까? y
[root@test /etc/proftpd/sbin]# rm -rf /usr/sbin/in.proftpd
[root@test /etc/proftpd/sbin]# ln -s /usr/sbin/proftpd /usr/sbin/in.proftpd
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Editing inetd config file
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[root@test /etc/proftpd/sbin]# cat /etc/inetd.conf
—————————————————————————-
ftp stream tcp nowait root /usr/sbin/tcpd in.proftpd
telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
—————————————————————————-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Reload inetd config file
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[root@test /etc/proftpd/sbin]# ps -ef | grep inetd
root 8984 1 0 Aug24 ? 00:00:01 /usr/sbin/inetd
root 3762 950 0 10:03 pts/6 00:00:00 grep inetd
[root@test /etc/proftpd/sbin]# kill -HUP 8984
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; FTP test
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[root@test /etc/proftpd/sbin]# ftp localhost
Connected to localhost.localdomain.
220 ProFTPD 1.2.2 Server (TEST FTP Server) [test.co.kr]
Name (localhost:root): telnet99
331 Password required for telnet99.
Password:
230 User telnet99 logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
226 Transfer complete.
ftp> bye
221 Goodbye.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Have a great time !!!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1 Response
… [Trackback]
[…] Info to that Topic: nblog.syszone.co.kr/archives/112 […]