BBUWOO'S [ LIKE UNIX ] WORLD Home > Lecture > Ftpd > Ftpd-5  

HOME
WHAT's BBUWOO?
LInux AnNyung
Open Source
    GitHUB
    GitHUB (for PHP)
LECTURE
MINI LECTURE
QnA BOARD
ENGLISH POEM


WARNNING

강좌의 모든 권리는 본인 김정균에게 있으며 이 강좌를 상업적 목적 으로 이용
하거나 다른 곳으로 옮길시에는 본인의 허락이 있어야 한다. 이글의 가장 최신글은
http://oops.org 에서 확인할수 있다.





 Hanterm - cat /home/ftp/welcome.msg

 [root@bbuwoo ftp]$ cat /home/ftp/welcome.msg                     

   Hi! %U of %R, Welcome to OOPS' FTP Server
   If u get any problem, report me via E-mail to %E

   And have a nice day~

   You are the  %Nth User of Max %M Users on Anonymous group
   Host : %L
   System time : %T
   Free space  : %F Kbyte

 [root@bbuwoo ftp]$ ftp ftp.oops.kr.net

   Connected to ftp.oops.kr.net.
   220 ftp.oops.kr.net FTP server (Version wu-2.4.2) Tue Jun 9 1.
   Name (ftp.oops.kr.net:oops): ftp
   331 Guest login ok, send your complete e-mail address as password.
   Password:
   230-
   230-Hi! ftp of ftp.oops.kr.net, Welcome to OOPS' FTP Server
   230-If u get any problem, report me via E-mail to admin at oops.kr.net   
   230-
   230-And have a nice day~
   230-
   230-You are the  1th User of Max 10 Users on Anonymous group
   230-Host : ftp.oops.kr.net
   230-System time : Sun Nov  8 12:35:41 1998
   230-Free space  : 362922 Kbyte
   230-
   230 Guest login ok, access restrictions apply.
   Remote system type is UNIX.
   Using binary mode to transfer files.
   ftp>quit

 [root@bbuwoo ftp]$



위의 내용은 welcome.msg에다가 ftp message file에서 사용하는 변수들을 이용한 나의 welcome.msg file의 예제이다. 윗부분은 welcome.msg에서 어떻게 변수를 사용하는 지를 예를 들었고 밑 부분은 실제로 FTP로 접근했을때 welcome.msg가 어떻게 보여주는 지를 나타내고 있다. 그럼 간단하게 Wu-ftpd에서 지원하는 message file에서 사용될 변수에 대해서 집고 넘어 가겠다.

   message file 변수

   %T      local time (form Thu  Nov  15  17:12:42 1990) 
   %F      free space in partition of CWD (kbytes) 
                  [ 모든 system에서 적용되지는 않음 ]
   %C      현재 작업중인 directory                
   %E      ftpaccess 에서 정의한 admin의 Email address                 
   %R      원격 host name
   %L      local host name 
   %u      RFC931 인증을 통해 결정된 username 
   %U      login time때 주어진 username
   %M      해당 class의 최대 접속자수
   %N      해당 class에서의 ? 번째 접속





 Hanterm - cat /home/ftp/etc/shutmsg

 [root@bbuwoo etc]$ cat /home/ftp/etc/shutmsg                     

    1998 10 05 23 59 0010 0001
    FTP daemon will shut down at %s,
    New Users will deny after %r,
    and current users will must be logouted at %d.

 [root@bbuwoo etc]$



위의 예제는 Wu-ftpd의 shutmsg의 내용에서 쓰여지는 변수를 살펴 본것이다. 간단히 위의 예제만 보아도 변수가 어떻게 쓰이는지 알수 있겠지만.. 나는 친절하므로 (실은 영어를 매우 미워하므로) 한글로 번역을 해 주겠다...음핫핫..

   %s      시스템이 다운되는 시간
   %r      새로운 접속이 거부되는 시간
   %d      현재 사용자들이 강제 logout 되는 시간



다음은 간단하게 ftp daemon을 실행하는 super daemon인 INETd와 anonymous의 보안에 대해서 간단하게 언급을 해 보겠다.



>> 이전 : ftpusers, ftphosts
>> 다음 : ftpd의 실행및 관리 명령



    



 Home > Lecture > Ftpd > Ftpd-5

Copyright 1997-2024 JoungKyun Kim 
LAST MODIFIED: 2017/01/18