internet

[알림판목록 I] [알림판목록 II] [글목록][이 전][다 음]
[ internet ] in KIDS
글 쓴 이(By): cds ()
날 짜 (Date): 1994년11월25일(금) 16시29분32초 KST
제 목(Title): [Re] anonymous ftp 만드는 법


-----------------------------------------------------------------------
Subject: How to give information via anonymous ftp.

                                                1990. 10.23.
                                                KookHaeng Cho
                                                khcho@garam.seri.re.kr
-----------------------------------------------------------------------

 0. Be the superuser.

 1. Add the pseudo-user "ftp" in /etc/passwd file with "misc" group.

        eg)  ftp:*:5:8:anonymous ftp :/info2/ftp:noshell

 2. Make an entry 'misc' in /etc/group"

        eg)  misc:*:8:ftp

 3. Create directories.

        garam% mkdir ~ftp ~ftp/{bin,dev,etc,pub,usr,usr/lib}

 4. Copy /bin/ls.

        garam% cp /bin/ls ~ftp/bin

 5. Copy /etc/{passwd,group}and edit them properly.

        garam% cp /etc/{passwd,group} ~ftp/etc

 6. Copy the runtime loader. 

        garam% cp /usr/lib/ld.so  ~ftp/usr/lib/ld.so

 7. Create ~ftp/dev/zero used by the runtime loader.

        garam% cd ~ftp/dev

        garam% mknod zero c 3 12        

 8. Make a copy of the latest version of the shared C library.

        garam% cp /usr/lib/libc.so.*  ~ftp/usr/lib/libc.so.*

 9. Set the permissions on the files and directories.

        garam% cd       ~ftp

        garam% chown    ftp     . pub 
        garam% chown    root    bin bin/ls etc etc/[pg]*        \
                                dev dev/zero usr usr/lib usr/lib/l*
        garam% chgrp    misc    . pub
        garam% chgrp    wheel   bin bin/ls etc etc/[pg]*        \
                                dev dev/zero usr usr/lib usr/lib/l*
        garam% chmod    111     bin/ls
        garam% chmod    444     etc/{passwd,group}
        garam% chmod    555     . bin dev etc usr usr/lib usr/lib/l*
        garam% chmod    777     pub

10. Make sure "ftpd" is in the /etc/inetd.conf file.

        eg)  # @(#)inetd.conf 1.17 88/02/07 SMI
             ftp   stream   tcp  nowait root   /usr/etc/in.ftpd   in.ftpd

11. Fill ~ftp/pub with goodies.

---------------------------------------------------------------------
[알림판목록 I] [알림판목록 II] [글 목록][이 전][다 음]
키 즈 는 열 린 사 람 들 의 모 임 입 니 다.