スポンサーサイト

2023.04.20 Thursday
0

    一定期間更新がないため広告を表示しています

    category:- | by:スポンサードリンク | - | - | -

    てじゅ

    2015.03.29 Sunday 08:18
    0
      -------------------------------------------------------------------------------------------------------
      Apache のインストール作業はここまでとなります。
      参考までにインターネット経由でインストールを行う場合は、「yum install httpd」等のコマンドを実行し
      インターネット上のサーバーに問い合わせ、パッケージのダウンロードからインストールまでを
      実施することが可能です。

      php のインストール作業はここまでとなります。
      参考までにインターネット経由でインストールを行う場合は、「yum install php」等のコマンドを実行し
      インターネット上のサーバーに問い合わせ、パッケージのダウンロードからインストールまでを
      実施することが可能です。

      memcached のインストール作業はここまでとなります。
      参考までにインターネット経由でインストールを行う場合は、「yum install memcached」のコマンドを実行し
      インターネット上のサーバーに問い合わせ、パッケージのダウンロードからインストールまでを
      実施することが可能です。

      memcache のインストール作業はここまでとなります。
      memcacheライブラリのインストールについてはインターネット経由でのインストールも上記と同様になります。

      vsftpd のインストール作業はここまでとなります。
      参考までにインターネット経由でインストールを行う場合は、「yum install vsftpd」等のコマンドを実行し
      インターネット上のサーバーに問い合わせ、パッケージのダウンロードからインストールまでを
      実施することが可能です。
      -------------------------------------------------------------------------------------------------------


      Apache のインストール作業はここまでとなります。 参考までにインターネット経由でインストールを行う場合は、「yum install httpd」となります。
      php のインストール作業はここまでとなります。 参考までにインターネット経由でインストールを行う場合は、「yum install php」となります。
      memcached のインストール作業はここまでとなります。参考までにインターネット経由でインストールを行う場合は、「yum install memcached」となります。
      memcache のインストール作業はここまでとなります。 memcacheライブラリのインストールについてはインターネット経由でのインストールも上記と同様になります。
      mysql のインストール作業はここまでとなります。 参考までにインターネット経由でインストールを行う場合は、「yum install mysql」となります。
      vsftpd のインストール作業はここまでとなります。 参考までにインターネット経由でインストールを行う場合のコマンドは、「yum install vsftpd」となります。



      php のインストール作業はここまでとなります。
      参考までにインターネット経由でインストールを行う場合は、「yum install php」となります。
      rpm -Uvh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm
      rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
      yum -y install php --enablerepo=remi-php55

      memcached のインストール作業はここまでとなります。参考までにインターネット経由でインストールを行う場合は、「yum install memcached」となります。

      memcache のインストール作業はここまでとなります。 memcacheライブラリのインストールについてはインターネット経由でのインストールも上記と同様になります。

      mysql のインストール作業はここまでとなります。 参考までにインターネット経由でインストールを行う場合は、「yum install http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm ; yum install mysql-community-server」となります。
      vsftpd のインストール作業はここまでとなります。 参考までにインターネット経由でインストールを行う場合のコマンドは、「yum install vsftpd」となります。

      これはいける
      # yum install memcached-1.4.4

      あかん
      # yum install httpd-2.4.12
      → yum install httpd だと 2.2.15-39.el6.centos がはいる
      # yum install php-5.5.21
      → yum install php だと php-5.3.3-40.el6_6.x86_64 がはいる
      # yum install mysql-5.6.23
      → yum install mysql だと 5.1.73-3.el6_5 がはいる
      # yum install vsftpd-3.0.2
      → yum install vsftpd だと vsftpd-2.2.2-13.el6_6.1.x86_64 がはいる

      参考までにインターネット経由でインストールを行う場合は、「yum install httpd」等のコマンドを実行し
      インターネット上のサーバーに問い合わせ、パッケージのダウンロードからインストールまでを
      実施することが可能です。


      yumはパッケージがアップロードされているサーバーに問い合わせて,
      のダウンロードからインストールまでを自動的に実施するコマンド。
      また,依存関係があるパッケージ(動作に必要な他のパッケージ)も自動的に
      入手してインストールする。システムにインストール済みのパッケージのアップデートも可能。







      ★★★ネットこばんど

      ★★1 P16
      4.2
      Apache2.4.12 をインストールする手順を説明します。

      ★★1 P19
      このサーバーのホスト名を設定します。
      ServerName ホスト名:80

      ★★1 P21 4.2.9
      Apacheを起動します。

      ★★1 P21
      Apache2.4.12 のインストールはここまでとなります。 参考までにインターネット経由でインストールを行う場合のコマンドは、「yum install Apache2.4.12」となります。
      php5.5.21 のインストールはここまでとなります。 参考までにインターネット経由でインストールを行う場合のコマンドは、「yum install php5.5.21」となります。
      memcached1.4.4 のインストールはここまでとなります。参考までにインターネット経由でインストールを行う場合のコマンドは、「yum install memcached1.4.4」となります。
      memcache2.2.7 のインストールはここまでとなります。 memcacheライブラリのインストールについてはインターネット経由でのインストールも上記と同様になります。
      mysql5.6.23 のインストールはここまでとなります。 参考までにインターネット経由でインストールを行う場合のコマンドは、「yum install mysql5.6.23」となります。
      vsftpd3.0.2 のインストールはここまでとなります。 参考までにインターネット経由でインストールを行う場合のコマンドは、「yum install vsftpd3.0.2」となります。

      ★★1 P22
      4.3
      php5.5.21 をインストールする手順を説明します。

      ★★1 P23
      configureの 。を追加


      ★★1 P27
      4.5.1 HotelT インストール
      削除 DVDにcentOSインストールメディアが入っており、mountしている状態で作業します。

      ★★1
      4.5.5 公開ディレクトリ

      chown -R webadmin webadmin
      chgrp -R webadmin webadmin
      うしろ

      ★★1 P29
      4.6.1 HotelT インストール
      削除 DVDにcentOSインストールメディアが入っており、mountしている状態で作業します。

      HotelT

      ★★2
      4.5.6
      データベース接続ファイルの編集
      データベース接続を定義しているdatabase.phpファイル内の"host"箇所を、"localhost"→"127.0.0.1"に変更します。
      # vi database.php
      'host' => '127.0.0.1',

      ★★
      P29 mysql5.6.23 をインストールする手順を説明します。


      ★★3 mysql 4.6.1
      yum --disablerepo=¥* --enable=c6-media 上記に表示されたパッケージ
      に修正

      ★★
      4.6.7 タイトル フォントをめいりおにするよ

      ★★
      P31 4.6.6
      以下のSQL文を実行し、データベースの初期設定を行います。

      ★★P33
      vsftpd3.0.2 をインストールする手順を説明します。
      DVDにcentOSインストールメディアが入っており、mountしている状態で作業します。


      ★★4
      vsftpd 4.7.5
      (既にインストール済みの場合はスキップしてください)
      (既にインストール済みの場合はスキップしてください)
      (既にインストール済みの場合はスキップしてください)
      3箇所に追加

      ★★5
      vsftp 4.7.7 インストール P38近く

      chroot_list_enable=NO に変更
      background=YES の追加
      -- user_lsit=NOの場合 /etc/vsftpd/user_list は に変更 . じゃないよ /


      ★★
      P40
      アクセスすると 
      しすてぶいらん

      ★★

      memcachedだよ memcashed じゃないよ c だよ
      memcas で サーチしてなおそう
      手順どおりにいくか自分でやるよ
      声にだして読むこと


      ネットインストール手順の追加
      category:- | by:ittoocomments(0)trackbacks(0) | -

      vsft

      2015.03.26 Thursday 06:38
      0
        [root@cntest2 ~]# cd /home/cdrom/
        [root@cntest2 cdrom]# ls
        [root@cntest2 cdrom]# wget https://security.appspot.com/downloads/vsftpd-3.0.2.tar.gz
        --2015-03-25 20:05:42-- https://security.appspot.com/downloads/vsftpd-3.0.2.tar.gz
        Resolving security.appspot.com... 173.194.72.141, 2404:6800:4008:c01::8d
        Connecting to security.appspot.com|173.194.72.141|:443... connected.
        HTTP request sent, awaiting response... 200 OK
        Length: unspecified [application/x-tar]
        Saving to: “vsftpd-3.0.2.tar.gz”

        [ <=> ] 192,808 486K/s in 0.4s

        2015-03-25 20:05:43 (486 KB/s) - “vsftpd-3.0.2.tar.gz” saved [192808]

        [root@cntest2 cdrom]# ps -ef | grep vsftpd
        root 1171 1153 0 20:05 pts/1 00:00:00 grep vsftpd
        [root@cntest2 cdrom]#
        [root@cntest2 cdrom]# vsftpd
        -bash: vsftpd: command not found
        [root@cntest2 cdrom]# which vsftpd
        /usr/bin/which: no vsftpd in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
        [root@cntest2 cdrom]# ls -ltr
        total 192
        -rw-r--r--. 1 root root 192808 Mar 25 20:05 vsftpd-3.0.2.tar.gz
        [root@cntest2 cdrom]#
        [root@cntest2 cdrom]#
        [root@cntest2 cdrom]# tar xvf vsftpd-3.0.2.tar.gz
        vsftpd-3.0.2/
        vsftpd-3.0.2/filestr.h
        vsftpd-3.0.2/sysutil.c
        vsftpd-3.0.2/README.ssl
        vsftpd-3.0.2/vsftpd.conf.5
        vsftpd-3.0.2/FAQ
        vsftpd-3.0.2/opts.c
        vsftpd-3.0.2/ftppolicy.c
        vsftpd-3.0.2/SIZE
        vsftpd-3.0.2/secbuf.c
        vsftpd-3.0.2/vsftpd.conf
        vsftpd-3.0.2/access.c
        vsftpd-3.0.2/ascii.h
        vsftpd-3.0.2/tunables.c
        vsftpd-3.0.2/EXAMPLE/
        vsftpd-3.0.2/EXAMPLE/VIRTUAL_HOSTS/
        vsftpd-3.0.2/EXAMPLE/VIRTUAL_HOSTS/README
        vsftpd-3.0.2/EXAMPLE/README
        vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/
        vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/vsftpd.conf
        vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/vsftpd.xinetd
        vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/README
        vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/
        vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/vsftpd.conf
        vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/README
        vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/logins.txt
        vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/vsftpd.pam
        vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS_2/
        vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS_2/README
        vsftpd-3.0.2/EXAMPLE/INTERNET_SITE_NOINETD/
        vsftpd-3.0.2/EXAMPLE/INTERNET_SITE_NOINETD/vsftpd.conf
        vsftpd-3.0.2/EXAMPLE/INTERNET_SITE_NOINETD/README
        vsftpd-3.0.2/EXAMPLE/PER_IP_CONFIG/
        vsftpd-3.0.2/EXAMPLE/PER_IP_CONFIG/README
        vsftpd-3.0.2/EXAMPLE/PER_IP_CONFIG/hosts.allow
        vsftpd-3.0.2/dummyinc/
        vsftpd-3.0.2/dummyinc/openssl/
        vsftpd-3.0.2/dummyinc/openssl/ssl.h
        vsftpd-3.0.2/dummyinc/sys/
        vsftpd-3.0.2/dummyinc/sys/sendfile.h
        vsftpd-3.0.2/dummyinc/sys/prctl.h
        vsftpd-3.0.2/dummyinc/sys/capability.h
        vsftpd-3.0.2/dummyinc/crypt.h
        vsftpd-3.0.2/dummyinc/utmpx.h
        vsftpd-3.0.2/dummyinc/shadow.h
        vsftpd-3.0.2/dummyinc/security/
        vsftpd-3.0.2/dummyinc/security/pam_appl.h
        vsftpd-3.0.2/AUDIT
        vsftpd-3.0.2/INSTALL
        vsftpd-3.0.2/ssl.h
        vsftpd-3.0.2/ftpcodes.h
        vsftpd-3.0.2/postprivparent.c
        vsftpd-3.0.2/hash.h
        vsftpd-3.0.2/ipaddrparse.h
        vsftpd-3.0.2/netstr.h
        vsftpd-3.0.2/REWARD
        vsftpd-3.0.2/sysdeputil.h
        vsftpd-3.0.2/sslslave.c
        vsftpd-3.0.2/ipaddrparse.c
        vsftpd-3.0.2/logging.c
        vsftpd-3.0.2/COPYING
        vsftpd-3.0.2/strlist.c
        vsftpd-3.0.2/features.c
        vsftpd-3.0.2/postprivparent.h
        vsftpd-3.0.2/strlist.h
        vsftpd-3.0.2/README
        vsftpd-3.0.2/banner.c
        vsftpd-3.0.2/postlogin.c
        vsftpd-3.0.2/utility.c
        vsftpd-3.0.2/ssl.c
        vsftpd-3.0.2/prelogin.h
        vsftpd-3.0.2/utility.h
        vsftpd-3.0.2/ls.c
        vsftpd-3.0.2/Changelog
        vsftpd-3.0.2/logging.h
        vsftpd-3.0.2/ftpcmdio.h
        vsftpd-3.0.2/secutil.h
        vsftpd-3.0.2/ascii.c
        vsftpd-3.0.2/sysstr.h
        vsftpd-3.0.2/SPEED
        vsftpd-3.0.2/vsftpd.8
        vsftpd-3.0.2/sysutil.h
        vsftpd-3.0.2/opts.h
        vsftpd-3.0.2/README.security
        vsftpd-3.0.2/port/
        vsftpd-3.0.2/port/solaris_bogons.h
        vsftpd-3.0.2/port/tru64_bogons.h
        vsftpd-3.0.2/port/porting_junk.h
        vsftpd-3.0.2/port/cmsg_extras.h
        vsftpd-3.0.2/port/hpux_bogons.h
        vsftpd-3.0.2/port/irix_bogons.h
        vsftpd-3.0.2/port/aix_bogons.h
        vsftpd-3.0.2/port/dirfd_extras.h
        vsftpd-3.0.2/secbuf.h
        vsftpd-3.0.2/RedHat/
        vsftpd-3.0.2/RedHat/README.spec
        vsftpd-3.0.2/RedHat/vsftpd.log
        vsftpd-3.0.2/RedHat/vsftpd.pam
        vsftpd-3.0.2/tcpwrap.h
        vsftpd-3.0.2/session.h
        vsftpd-3.0.2/parseconf.h
        vsftpd-3.0.2/Makefile
        vsftpd-3.0.2/privops.c
        vsftpd-3.0.2/parseconf.c
        vsftpd-3.0.2/access.h
        vsftpd-3.0.2/banner.h
        vsftpd-3.0.2/vsf_findlibs.sh
        vsftpd-3.0.2/standalone.c
        vsftpd-3.0.2/oneprocess.c
        vsftpd-3.0.2/hash.c
        vsftpd-3.0.2/prelogin.c
        vsftpd-3.0.2/ftpcmdio.c
        vsftpd-3.0.2/ftpdataio.c
        vsftpd-3.0.2/filesize.h
        vsftpd-3.0.2/twoprocess.h
        vsftpd-3.0.2/readwrite.c
        vsftpd-3.0.2/secutil.c
        vsftpd-3.0.2/xinetd.d/
        vsftpd-3.0.2/xinetd.d/vsftpd
        vsftpd-3.0.2/BENCHMARKS
        vsftpd-3.0.2/postlogin.h
        vsftpd-3.0.2/ftpdataio.h
        vsftpd-3.0.2/tunables.h
        vsftpd-3.0.2/TUNING
        vsftpd-3.0.2/vsftpver.h
        vsftpd-3.0.2/ptracesandbox.h
        vsftpd-3.0.2/ls.h
        vsftpd-3.0.2/seccompsandbox.h
        vsftpd-3.0.2/str.h
        vsftpd-3.0.2/privsock.h
        vsftpd-3.0.2/BUGS
        vsftpd-3.0.2/sysstr.c
        vsftpd-3.0.2/TODO
        vsftpd-3.0.2/ftppolicy.h
        vsftpd-3.0.2/SECURITY/
        vsftpd-3.0.2/SECURITY/OVERVIEW
        vsftpd-3.0.2/SECURITY/DESIGN
        vsftpd-3.0.2/SECURITY/IMPLEMENTATION
        vsftpd-3.0.2/SECURITY/TRUST
        vsftpd-3.0.2/COPYRIGHT
        vsftpd-3.0.2/main.c
        vsftpd-3.0.2/seccompsandbox.c
        vsftpd-3.0.2/privops.h
        vsftpd-3.0.2/builddefs.h
        vsftpd-3.0.2/ptracesandbox.c
        vsftpd-3.0.2/features.h
        vsftpd-3.0.2/tcpwrap.c
        vsftpd-3.0.2/str.c
        vsftpd-3.0.2/privsock.c
        vsftpd-3.0.2/twoprocess.c
        vsftpd-3.0.2/netstr.c
        vsftpd-3.0.2/REFS
        vsftpd-3.0.2/standalone.h
        vsftpd-3.0.2/defs.h
        vsftpd-3.0.2/oneprocess.h
        vsftpd-3.0.2/filestr.c
        vsftpd-3.0.2/sysdeputil.c
        vsftpd-3.0.2/readwrite.h
        vsftpd-3.0.2/sslslave.h
        vsftpd-3.0.2/LICENSE
        [root@cntest2 cdrom]# ls ^ltr
        ls: cannot access ^ltr: No such file or directory
        [root@cntest2 cdrom]# ls -ltr
        total 196
        drwxr-x--x. 8 1000 1000 4096 Sep 18 2012 vsftpd-3.0.2
        -rw-r--r--. 1 root root 192808 Mar 25 20:05 vsftpd-3.0.2.tar.gz
        [root@cntest2 cdrom]# cp -pr vsftpd-3.0.2 /usr/local/src/
        [root@cntest2 cdrom]# cp usr/
        cp: missing destination file operand after `usr/'
        Try `cp --help' for more information.
        [root@cntest2 cdrom]#
        [root@cntest2 cdrom]# cp /usr/local/src/vsftpd-3.0.2/vsftpd.conf /etc/
        [root@cntest2 cdrom]# yum install vsftpd
        Loaded plugins: fastestmirror
        Determining fastest mirrors
        * base: www.ftp.ne.jp
        * extras: www.ftp.ne.jp
        * updates: www.ftp.ne.jp
        base | 3.7 kB 00:00
        base/primary_db | 4.6 MB 00:00
        extras | 3.4 kB 00:00
        extras/primary_db | 30 kB 00:00
        updates | 3.4 kB 00:00
        updates/primary_db | 2.7 MB 00:00
        Setting up Install Process
        Resolving Dependencies
        --> Running transaction check
        ---> Package vsftpd.x86_64 0:2.2.2-13.el6_6.1 will be installed
        --> Finished Dependency Resolution

        Dependencies Resolved

        ================================================================================================
        Package Arch Version Repository Size
        ================================================================================================
        Installing:
        vsftpd x86_64 2.2.2-13.el6_6.1 updates 151 k

        Transaction Summary
        ================================================================================================
        Install 1 Package(s)

        Total download size: 151 k
        Installed size: 332 k
        Is this ok [y/N]: y
        Downloading Packages:
        vsftpd-2.2.2-13.el6_6.1.x86_64.rpm | 151 kB 00:00
        Running rpm_check_debug
        Running Transaction Test
        Transaction Test Succeeded
        Running Transaction
        Installing : vsftpd-2.2.2-13.el6_6.1.x86_64 1/1
        Verifying : vsftpd-2.2.2-13.el6_6.1.x86_64 1/1

        Installed:
        vsftpd.x86_64 0:2.2.2-13.el6_6.1

        Complete!
        [root@cntest2 cdrom]#
        [root@cntest2 cdrom]# ls
        vsftpd-3.0.2 vsftpd-3.0.2.tar.gz
        [root@cntest2 cdrom]# /usr/sbin/useradd -d /home/webadmin/NEHOPS -s /bin/tcsh nehops
        useradd: warning: the home directory already exists.
        Not copying any file from skel directory into it.
        [root@cntest2 cdrom]#
        [root@cntest2 cdrom]#
        [root@cntest2 cdrom]# /usr/sbin/useradd -d /home/webadmin/NEHOPS -s /bin/tcsh nehops
        useradd: user 'nehops' already exists
        [root@cntest2 cdrom]# tail passwd
        tail: cannot open `passwd' for reading: No such file or directory
        [root@cntest2 cdrom]# tail /etcpasswd
        tail: cannot open `/etcpasswd' for reading: No such file or directory
        [root@cntest2 cdrom]# tail /etc/passwd
        games:x:12:100:games:/usr/games:/sbin/nologin
        gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
        ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
        nobody:x:99:99:Nobody:/:/sbin/nologin
        vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
        saslauth:x:499:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
        postfix:x:89:89::/var/spool/postfix:/sbin/nologin
        sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
        ntp:x:38:38::/etc/ntp:/sbin/nologin
        nehops:x:500:500::/home/webadmin/NEHOPS:/bin/tcsh
        [root@cntest2 cdrom]# ls
        vsftpd-3.0.2 vsftpd-3.0.2.tar.gz
        [root@cntest2 cdrom]# chmod 777 -R /home/webadmin/NEHOPS/
        [root@cntest2 cdrom]# mkdir -p /usr/local/man/{man5,man8}
        [root@cntest2 cdrom]# cd /usr/local/src/vsftpd-3.0.2/
        [root@cntest2 vsftpd-3.0.2]# ls -l
        total 956
        -rw-r--r--. 1 1000 1000 1325 Feb 15 2011 access.c
        -rw-r--r--. 1 1000 1000 770 Feb 2 2008 access.h
        -rw-r--r--. 1 1000 1000 2015 Dec 9 2008 ascii.c
        -rw-r--r--. 1 1000 1000 2026 Dec 9 2008 ascii.h
        -rw-r--r--. 1 1000 1000 1392 Feb 2 2008 AUDIT
        -rw-r--r--. 1 1000 1000 2126 Sep 16 2012 banner.c
        -rw-r--r--. 1 1000 1000 1097 Feb 2 2008 banner.h
        -rw-r--r--. 1 1000 1000 2908 Feb 2 2008 BENCHMARKS
        -rw-r--r--. 1 1000 1000 822 Mar 28 2012 BUGS
        -rw-r--r--. 1 1000 1000 152 Apr 5 2012 builddefs.h
        -rw-r--r--. 1 1000 1000 67038 Sep 18 2012 Changelog
        -rw-r--r--. 1 1000 1000 18288 Feb 2 2008 COPYING
        -rw-r--r--. 1 1000 1000 116 Jul 7 2009 COPYRIGHT
        -rw-r--r--. 1 1000 1000 767 Apr 3 2012 defs.h
        drwxr-xr-x. 5 1000 1000 4096 Feb 2 2008 dummyinc
        drwxr-xr-x. 8 1000 1000 4096 Feb 2 2008 EXAMPLE
        -rw-r--r--. 1 1000 1000 12942 Dec 17 2011 FAQ
        -rw-r--r--. 1 1000 1000 1213 Dec 14 2011 features.c
        -rw-r--r--. 1 1000 1000 144 Feb 2 2008 features.h
        -rw-r--r--. 1 1000 1000 107 Feb 2 2008 filesize.h
        -rw-r--r--. 1 1000 1000 1431 Sep 16 2012 filestr.c
        -rw-r--r--. 1 1000 1000 834 Feb 2 2008 filestr.h
        -rw-r--r--. 1 1000 1000 6843 Apr 3 2012 ftpcmdio.c
        -rw-r--r--. 1 1000 1000 3315 Apr 3 2012 ftpcmdio.h
        -rw-r--r--. 1 1000 1000 2392 Feb 12 2008 ftpcodes.h
        -rw-r--r--. 1 1000 1000 18742 Apr 3 2012 ftpdataio.c
        -rw-r--r--. 1 1000 1000 3460 Jul 29 2008 ftpdataio.h
        -rw-r--r--. 1 1000 1000 9385 Jan 8 2012 ftppolicy.c
        -rw-r--r--. 1 1000 1000 465 Dec 18 2008 ftppolicy.h
        -rw-r--r--. 1 1000 1000 3337 Sep 16 2012 hash.c
        -rw-r--r--. 1 1000 1000 469 Feb 2 2008 hash.h
        -rw-r--r--. 1 1000 1000 5512 Feb 2 2008 INSTALL
        -rw-r--r--. 1 1000 1000 5017 Feb 2 2008 ipaddrparse.c
        -rw-r--r--. 1 1000 1000 566 Feb 2 2008 ipaddrparse.h
        -rw-r--r--. 1 1000 1000 312 Feb 2 2008 LICENSE
        -rw-r--r--. 1 1000 1000 10458 Sep 16 2012 logging.c
        -rw-r--r--. 1 1000 1000 2337 Jul 30 2008 logging.h
        -rw-r--r--. 1 1000 1000 13617 Sep 16 2012 ls.c
        -rw-r--r--. 1 1000 1000 2019 Feb 15 2011 ls.h
        -rw-r--r--. 1 1000 1000 10320 Sep 16 2012 main.c
        -rw-r--r--. 1 1000 1000 1672 Sep 16 2012 Makefile
        -rw-r--r--. 1 1000 1000 2877 Mar 30 2012 netstr.c
        -rw-r--r--. 1 1000 1000 2741 Mar 30 2012 netstr.h
        -rw-r--r--. 1 1000 1000 4220 Sep 16 2012 oneprocess.c
        -rw-r--r--. 1 1000 1000 2386 Jul 7 2009 oneprocess.h
        -rw-r--r--. 1 1000 1000 481 Feb 12 2008 opts.c
        -rw-r--r--. 1 1000 1000 132 Feb 12 2008 opts.h
        -rw-r--r--. 1 1000 1000 12422 Sep 16 2012 parseconf.c
        -rw-r--r--. 1 1000 1000 1158 Jul 14 2009 parseconf.h
        drwxr-xr-x. 2 1000 1000 4096 Feb 2 2008 port
        -rw-r--r--. 1 1000 1000 59072 Sep 18 2012 postlogin.c
        -rw-r--r--. 1 1000 1000 317 Feb 2 2008 postlogin.h
        -rw-r--r--. 1 1000 1000 4782 Sep 16 2012 postprivparent.c
        -rw-r--r--. 1 1000 1000 397 Feb 2 2008 postprivparent.h
        -rw-r--r--. 1 1000 1000 8449 Apr 3 2012 prelogin.c
        -rw-r--r--. 1 1000 1000 419 Feb 2 2008 prelogin.h
        -rw-r--r--. 1 1000 1000 11444 Sep 16 2012 privops.c
        -rw-r--r--. 1 1000 1000 3023 Mar 18 2010 privops.h
        -rw-r--r--. 1 1000 1000 4016 May 21 2009 privsock.c
        -rw-r--r--. 1 1000 1000 4876 Jul 7 2009 privsock.h
        -rw-r--r--. 1 1000 1000 32805 Dec 14 2011 ptracesandbox.c
        -rw-r--r--. 1 1000 1000 11306 Jan 7 2009 ptracesandbox.h
        -rw-r--r--. 1 1000 1000 1361 Sep 18 2012 README
        -rw-r--r--. 1 1000 1000 112 Feb 2 2008 README.security
        -rw-r--r--. 1 1000 1000 2115 Feb 2 2008 README.ssl
        -rw-r--r--. 1 1000 1000 5144 Apr 2 2012 readwrite.c
        -rw-r--r--. 1 1000 1000 564 Nov 12 2009 readwrite.h
        drwxr-xr-x. 2 1000 1000 4096 Dec 17 2008 RedHat
        -rw-r--r--. 1 1000 1000 1713 Feb 2 2008 REFS
        -rw-r--r--. 1 1000 1000 125 Feb 2 2008 REWARD
        -rw-r--r--. 1 1000 1000 2370 Feb 2 2008 secbuf.c
        -rw-r--r--. 1 1000 1000 865 Feb 2 2008 secbuf.h
        -rw-r--r--. 1 1000 1000 15713 Sep 18 2012 seccompsandbox.c
        -rw-r--r--. 1 1000 1000 372 Mar 28 2012 seccompsandbox.h
        drwxr-xr-x. 2 1000 1000 4096 Jul 17 2009 SECURITY
        -rw-r--r--. 1 1000 1000 3735 Mar 28 2012 secutil.c
        -rw-r--r--. 1 1000 1000 1980 Mar 28 2012 secutil.h
        -rw-r--r--. 1 1000 1000 2252 Apr 5 2012 session.h
        -rw-r--r--. 1 1000 1000 392 Feb 2 2008 SIZE
        -rw-r--r--. 1 1000 1000 1172 Feb 2 2008 SPEED
        -rw-r--r--. 1 1000 1000 19753 Apr 3 2012 ssl.c
        -rw-r--r--. 1 1000 1000 1187 Dec 12 2008 ssl.h
        -rw-r--r--. 1 1000 1000 3584 Apr 3 2012 sslslave.c
        -rw-r--r--. 1 1000 1000 435 Dec 11 2008 sslslave.h
        -rw-r--r--. 1 1000 1000 7848 Sep 16 2012 standalone.c
        -rw-r--r--. 1 1000 1000 606 Feb 2 2008 standalone.h
        -rw-r--r--. 1 1000 1000 15494 Sep 16 2012 str.c
        -rw-r--r--. 1 1000 1000 4998 Sep 16 2012 str.h
        -rw-r--r--. 1 1000 1000 3985 Sep 16 2012 strlist.c
        -rw-r--r--. 1 1000 1000 897 Sep 16 2012 strlist.h
        -rw-r--r--. 1 1000 1000 32107 Sep 16 2012 sysdeputil.c
        -rw-r--r--. 1 1000 1000 2685 Mar 26 2010 sysdeputil.h
        -rw-r--r--. 1 1000 1000 3835 Dec 14 2011 sysstr.c
        -rw-r--r--. 1 1000 1000 1463 Aug 18 2010 sysstr.h
        -rw-r--r--. 1 1000 1000 61934 Sep 16 2012 sysutil.c
        -rw-r--r--. 1 1000 1000 14870 Sep 16 2012 sysutil.h
        -rw-r--r--. 1 1000 1000 929 Dec 17 2008 tcpwrap.c
        -rw-r--r--. 1 1000 1000 113 Feb 2 2008 tcpwrap.h
        -rw-r--r--. 1 1000 1000 1833 Apr 5 2012 TODO
        -rw-r--r--. 1 1000 1000 9877 Apr 4 2012 tunables.c
        -rw-r--r--. 1 1000 1000 8623 Mar 28 2012 tunables.h
        -rw-r--r--. 1 1000 1000 1261 Feb 2 2008 TUNING
        -rw-r--r--. 1 1000 1000 16088 Sep 16 2012 twoprocess.c
        -rw-r--r--. 1 1000 1000 2485 Jul 7 2009 twoprocess.h
        -rw-r--r--. 1 1000 1000 1171 Sep 16 2012 utility.c
        -rw-r--r--. 1 1000 1000 1130 Feb 2 2008 utility.h
        -rwxr-xr-x. 1 1000 1000 2449 Mar 28 2012 vsf_findlibs.sh
        -rw-r--r--. 1 1000 1000 2065 Jul 17 2009 vsftpd.8
        -rw-r--r--. 1 1000 1000 4593 Dec 17 2011 vsftpd.conf
        -rw-r--r--. 1 1000 1000 34332 Oct 19 2009 vsftpd.conf.5
        -rw-r--r--. 1 1000 1000 102 Sep 18 2012 vsftpver.h
        drwxr-xr-x. 2 1000 1000 4096 Feb 2 2008 xinetd.d
        [root@cntest2 vsftpd-3.0.2]# pwd
        /usr/local/src/vsftpd-3.0.2
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# cp builddefs.h builddefs.h.org
        [root@cntest2 vsftpd-3.0.2]# vi builddefs.h
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# cp Makefile Makefile.org
        [root@cntest2 vsftpd-3.0.2]# vi Makefile
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# cp sysdeputil.c sysdeputil.c.org
        [root@cntest2 vsftpd-3.0.2]# grep LIBCAP sysdeputil.c | head
        #define VSF_SYSDEP_HAVE_LIBCAP
        #undef VSF_SYSDEP_HAVE_LIBCAP
        #undef VSF_SYSDEP_HAVE_LIBCAP
        #if defined(VSF_SYSDEP_HAVE_CAPABILITIES) && !defined(VSF_SYSDEP_HAVE_LIBCAP)
        #if !defined(VSF_SYSDEP_HAVE_CAPABILITIES) && !defined(VSF_SYSDEP_HAVE_LIBCAP)
        #else /* VSF_SYSDEP_HAVE_CAPABILITIES || VSF_SYSDEP_HAVE_LIBCAP */
        #ifndef VSF_SYSDEP_HAVE_LIBCAP
        #else /* VSF_SYSDEP_HAVE_LIBCAP */
        #endif /* !VSF_SYSDEP_HAVE_LIBCAP */
        #endif /* VSF_SYSDEP_HAVE_CAPABILITIES || VSF_SYSDEP_HAVE_LIBCAP */
        [root@cntest2 vsftpd-3.0.2]# grep LIBCAP sysdeputil.c | grep define
        #define VSF_SYSDEP_HAVE_LIBCAP
        #if defined(VSF_SYSDEP_HAVE_CAPABILITIES) && !defined(VSF_SYSDEP_HAVE_LIBCAP)
        #if !defined(VSF_SYSDEP_HAVE_CAPABILITIES) && !defined(VSF_SYSDEP_HAVE_LIBCAP)
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# sed -i -e 's|#define VSF_SYSDEP_HAVE_LIBCAP|//&|' sysdeputil.c
        [root@cntest2 vsftpd-3.0.2]# ls -ltr
        total 996
        -rw-r--r--. 1 1000 1000 113 Feb 2 2008 tcpwrap.h
        -rw-r--r--. 1 1000 1000 1172 Feb 2 2008 SPEED
        -rw-r--r--. 1 1000 1000 865 Feb 2 2008 secbuf.h
        -rw-r--r--. 1 1000 1000 125 Feb 2 2008 REWARD
        -rw-r--r--. 1 1000 1000 397 Feb 2 2008 postprivparent.h
        drwxr-xr-x. 2 1000 1000 4096 Feb 2 2008 port
        -rw-r--r--. 1 1000 1000 566 Feb 2 2008 ipaddrparse.h
        -rw-r--r--. 1 1000 1000 5512 Feb 2 2008 INSTALL
        -rw-r--r--. 1 1000 1000 1392 Feb 2 2008 AUDIT
        -rw-r--r--. 1 1000 1000 770 Feb 2 2008 access.h
        drwxr-xr-x. 2 1000 1000 4096 Feb 2 2008 xinetd.d
        -rw-r--r--. 1 1000 1000 606 Feb 2 2008 standalone.h
        -rw-r--r--. 1 1000 1000 1713 Feb 2 2008 REFS
        -rw-r--r--. 1 1000 1000 2115 Feb 2 2008 README.ssl
        -rw-r--r--. 1 1000 1000 317 Feb 2 2008 postlogin.h
        -rw-r--r--. 1 1000 1000 312 Feb 2 2008 LICENSE
        drwxr-xr-x. 8 1000 1000 4096 Feb 2 2008 EXAMPLE
        -rw-r--r--. 1 1000 1000 1130 Feb 2 2008 utility.h
        -rw-r--r--. 1 1000 1000 1261 Feb 2 2008 TUNING
        -rw-r--r--. 1 1000 1000 392 Feb 2 2008 SIZE
        -rw-r--r--. 1 1000 1000 2370 Feb 2 2008 secbuf.c
        -rw-r--r--. 1 1000 1000 112 Feb 2 2008 README.security
        -rw-r--r--. 1 1000 1000 419 Feb 2 2008 prelogin.h
        -rw-r--r--. 1 1000 1000 5017 Feb 2 2008 ipaddrparse.c
        -rw-r--r--. 1 1000 1000 469 Feb 2 2008 hash.h
        -rw-r--r--. 1 1000 1000 834 Feb 2 2008 filestr.h
        -rw-r--r--. 1 1000 1000 107 Feb 2 2008 filesize.h
        drwxr-xr-x. 5 1000 1000 4096 Feb 2 2008 dummyinc
        -rw-r--r--. 1 1000 1000 18288 Feb 2 2008 COPYING
        -rw-r--r--. 1 1000 1000 1097 Feb 2 2008 banner.h
        -rw-r--r--. 1 1000 1000 144 Feb 2 2008 features.h
        -rw-r--r--. 1 1000 1000 2908 Feb 2 2008 BENCHMARKS
        -rw-r--r--. 1 1000 1000 2392 Feb 12 2008 ftpcodes.h
        -rw-r--r--. 1 1000 1000 132 Feb 12 2008 opts.h
        -rw-r--r--. 1 1000 1000 481 Feb 12 2008 opts.c
        -rw-r--r--. 1 1000 1000 3460 Jul 29 2008 ftpdataio.h
        -rw-r--r--. 1 1000 1000 2337 Jul 30 2008 logging.h
        -rw-r--r--. 1 1000 1000 2026 Dec 9 2008 ascii.h
        -rw-r--r--. 1 1000 1000 2015 Dec 9 2008 ascii.c
        -rw-r--r--. 1 1000 1000 435 Dec 11 2008 sslslave.h
        -rw-r--r--. 1 1000 1000 1187 Dec 12 2008 ssl.h
        drwxr-xr-x. 2 1000 1000 4096 Dec 17 2008 RedHat
        -rw-r--r--. 1 1000 1000 929 Dec 17 2008 tcpwrap.c
        -rw-r--r--. 1 1000 1000 465 Dec 18 2008 ftppolicy.h
        -rw-r--r--. 1 1000 1000 11306 Jan 7 2009 ptracesandbox.h
        -rw-r--r--. 1 1000 1000 4016 May 21 2009 privsock.c
        -rw-r--r--. 1 1000 1000 4876 Jul 7 2009 privsock.h
        -rw-r--r--. 1 1000 1000 2386 Jul 7 2009 oneprocess.h
        -rw-r--r--. 1 1000 1000 2485 Jul 7 2009 twoprocess.h
        -rw-r--r--. 1 1000 1000 116 Jul 7 2009 COPYRIGHT
        -rw-r--r--. 1 1000 1000 1158 Jul 14 2009 parseconf.h
        drwxr-xr-x. 2 1000 1000 4096 Jul 17 2009 SECURITY
        -rw-r--r--. 1 1000 1000 2065 Jul 17 2009 vsftpd.8
        -rw-r--r--. 1 1000 1000 34332 Oct 19 2009 vsftpd.conf.5
        -rw-r--r--. 1 1000 1000 564 Nov 12 2009 readwrite.h
        -rw-r--r--. 1 1000 1000 3023 Mar 18 2010 privops.h
        -rw-r--r--. 1 1000 1000 2685 Mar 26 2010 sysdeputil.h
        -rw-r--r--. 1 1000 1000 1463 Aug 18 2010 sysstr.h
        -rw-r--r--. 1 1000 1000 2019 Feb 15 2011 ls.h
        -rw-r--r--. 1 1000 1000 1325 Feb 15 2011 access.c
        -rw-r--r--. 1 1000 1000 32805 Dec 14 2011 ptracesandbox.c
        -rw-r--r--. 1 1000 1000 3835 Dec 14 2011 sysstr.c
        -rw-r--r--. 1 1000 1000 1213 Dec 14 2011 features.c
        -rw-r--r--. 1 1000 1000 4593 Dec 17 2011 vsftpd.conf
        -rw-r--r--. 1 1000 1000 12942 Dec 17 2011 FAQ
        -rw-r--r--. 1 1000 1000 9385 Jan 8 2012 ftppolicy.c
        -rwxr-xr-x. 1 1000 1000 2449 Mar 28 2012 vsf_findlibs.sh
        -rw-r--r--. 1 1000 1000 1980 Mar 28 2012 secutil.h
        -rw-r--r--. 1 1000 1000 3735 Mar 28 2012 secutil.c
        -rw-r--r--. 1 1000 1000 8623 Mar 28 2012 tunables.h
        -rw-r--r--. 1 1000 1000 822 Mar 28 2012 BUGS
        -rw-r--r--. 1 1000 1000 372 Mar 28 2012 seccompsandbox.h
        -rw-r--r--. 1 1000 1000 2741 Mar 30 2012 netstr.h
        -rw-r--r--. 1 1000 1000 2877 Mar 30 2012 netstr.c
        -rw-r--r--. 1 1000 1000 5144 Apr 2 2012 readwrite.c
        -rw-r--r--. 1 1000 1000 19753 Apr 3 2012 ssl.c
        -rw-r--r--. 1 1000 1000 3315 Apr 3 2012 ftpcmdio.h
        -rw-r--r--. 1 1000 1000 6843 Apr 3 2012 ftpcmdio.c
        -rw-r--r--. 1 1000 1000 8449 Apr 3 2012 prelogin.c
        -rw-r--r--. 1 1000 1000 3584 Apr 3 2012 sslslave.c
        -rw-r--r--. 1 1000 1000 767 Apr 3 2012 defs.h
        -rw-r--r--. 1 1000 1000 18742 Apr 3 2012 ftpdataio.c
        -rw-r--r--. 1 1000 1000 9877 Apr 4 2012 tunables.c
        -rw-r--r--. 1 1000 1000 2252 Apr 5 2012 session.h
        -rw-r--r--. 1 1000 1000 1833 Apr 5 2012 TODO
        -rw-r--r--. 1 1000 1000 4782 Sep 16 2012 postprivparent.c
        -rw-r--r--. 1 1000 1000 4220 Sep 16 2012 oneprocess.c
        -rw-r--r--. 1 1000 1000 1171 Sep 16 2012 utility.c
        -rw-r--r--. 1 1000 1000 10458 Sep 16 2012 logging.c
        -rw-r--r--. 1 1000 1000 2126 Sep 16 2012 banner.c
        -rw-r--r--. 1 1000 1000 10320 Sep 16 2012 main.c
        -rw-r--r--. 1 1000 1000 14870 Sep 16 2012 sysutil.h
        -rw-r--r--. 1 1000 1000 897 Sep 16 2012 strlist.h
        -rw-r--r--. 1 1000 1000 13617 Sep 16 2012 ls.c
        -rw-r--r--. 1 1000 1000 4998 Sep 16 2012 str.h
        -rw-r--r--. 1 1000 1000 61934 Sep 16 2012 sysutil.c
        -rw-r--r--. 1 1000 1000 15494 Sep 16 2012 str.c
        -rw-r--r--. 1 1000 1000 3985 Sep 16 2012 strlist.c
        -rw-r--r--. 1 1000 1000 1431 Sep 16 2012 filestr.c
        -rw-r--r--. 1 1000 1000 12422 Sep 16 2012 parseconf.c
        -rw-r--r--. 1 1000 1000 16088 Sep 16 2012 twoprocess.c
        -rw-r--r--. 1 1000 1000 11444 Sep 16 2012 privops.c
        -rw-r--r--. 1 1000 1000 7848 Sep 16 2012 standalone.c
        -rw-r--r--. 1 1000 1000 3337 Sep 16 2012 hash.c
        -rw-r--r--. 1 1000 1000 15713 Sep 18 2012 seccompsandbox.c
        -rw-r--r--. 1 1000 1000 59072 Sep 18 2012 postlogin.c
        -rw-r--r--. 1 1000 1000 1361 Sep 18 2012 README
        -rw-r--r--. 1 1000 1000 102 Sep 18 2012 vsftpver.h
        -rw-r--r--. 1 1000 1000 67038 Sep 18 2012 Changelog
        -rw-r--r--. 1 root root 152 Mar 25 20:30 builddefs.h.org
        -rw-r--r--. 1 1000 1000 153 Mar 25 20:31 builddefs.h
        -rw-r--r--. 1 root root 1672 Mar 25 20:31 Makefile.org
        -rw-r--r--. 1 1000 1000 1698 Mar 25 20:32 Makefile
        -rw-r--r--. 1 root root 32107 Mar 25 20:33 sysdeputil.c.org
        -rw-r--r--. 1 1000 1000 32109 Mar 25 20:35 sysdeputil.c
        [root@cntest2 vsftpd-3.0.2]# yum install tcp_wrappers-devel
        Loaded plugins: fastestmirror
        Loading mirror speeds from cached hostfile
        * base: www.ftp.ne.jp
        * extras: www.ftp.ne.jp
        * updates: www.ftp.ne.jp
        Setting up Install Process
        Resolving Dependencies
        --> Running transaction check
        ---> Package tcp_wrappers-devel.x86_64 0:7.6-57.el6 will be installed
        --> Finished Dependency Resolution

        Dependencies Resolved

        ============================================================================================
        Package Arch Version Repository Size
        ============================================================================================
        Installing:
        tcp_wrappers-devel x86_64 7.6-57.el6 base 15 k

        Transaction Summary
        ============================================================================================
        Install 1 Package(s)

        Total download size: 15 k
        Installed size: 11 k
        Is this ok [y/N]: y
        Downloading Packages:
        tcp_wrappers-devel-7.6-57.el6.x86_64.rpm | 15 kB 00:00
        Running rpm_check_debug
        Running Transaction Test
        Transaction Test Succeeded
        Running Transaction
        Installing : tcp_wrappers-devel-7.6-57.el6.x86_64 1/1
        Verifying : tcp_wrappers-devel-7.6-57.el6.x86_64 1/1

        Installed:
        tcp_wrappers-devel.x86_64 0:7.6-57.el6

        Complete!
        [root@cntest2 vsftpd-3.0.2]# pwd
        /usr/local/src/vsftpd-3.0.2
        [root@cntest2 vsftpd-3.0.2]# make
        gcc -c main.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        make: gcc: Command not found
        make: *** [main.o] Error 127
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# yum install gcc
        Loaded plugins: fastestmirror
        Loading mirror speeds from cached hostfile
        * base: www.ftp.ne.jp
        * extras: www.ftp.ne.jp
        * updates: www.ftp.ne.jp
        Setting up Install Process
        Resolving Dependencies
        --> Running transaction check
        ---> Package gcc.x86_64 0:4.4.7-11.el6 will be installed
        --> Processing Dependency: libgomp = 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.x86_64
        --> Processing Dependency: cpp = 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.x86_64
        --> Processing Dependency: libgcc >= 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.x86_64
        --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-11.el6.x86_64
        --> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-11.el6.x86_64
        --> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.4.7-11.el6.x86_64
        --> Running transaction check
        ---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
        --> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
        --> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
        ---> Package cpp.x86_64 0:4.4.7-11.el6 will be installed
        --> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-11.el6.x86_64
        ---> Package glibc-devel.x86_64 0:2.12-1.149.el6_6.5 will be installed
        --> Processing Dependency: glibc-headers = 2.12-1.149.el6_6.5 for package: glibc-devel-2.12-1.149.el6_6.5.x86_64
        --> Processing Dependency: glibc = 2.12-1.149.el6_6.5 for package: glibc-devel-2.12-1.149.el6_6.5.x86_64
        --> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.149.el6_6.5.x86_64
        ---> Package libgcc.x86_64 0:4.4.7-4.el6 will be updated
        ---> Package libgcc.x86_64 0:4.4.7-11.el6 will be an update
        ---> Package libgomp.x86_64 0:4.4.7-11.el6 will be installed
        --> Running transaction check
        ---> Package glibc.x86_64 0:2.12-1.132.el6 will be updated
        --> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-common-2.12-1.132.el6.x86_64
        ---> Package glibc.x86_64 0:2.12-1.149.el6_6.5 will be an update
        ---> Package glibc-headers.x86_64 0:2.12-1.149.el6_6.5 will be installed
        --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.149.el6_6.5.x86_64
        --> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.149.el6_6.5.x86_64
        ---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
        ---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
        --> Running transaction check
        ---> Package glibc-common.x86_64 0:2.12-1.132.el6 will be updated
        ---> Package glibc-common.x86_64 0:2.12-1.149.el6_6.5 will be an update
        ---> Package kernel-headers.x86_64 0:2.6.32-504.12.2.el6 will be installed
        --> Finished Dependency Resolution

        Dependencies Resolved

        ============================================================================================
        Package Arch Version Repository Size
        ============================================================================================
        Installing:
        gcc x86_64 4.4.7-11.el6 base 10 M
        Installing for dependencies:
        cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k
        cpp x86_64 4.4.7-11.el6 base 3.7 M
        glibc-devel x86_64 2.12-1.149.el6_6.5 updates 983 k
        glibc-headers x86_64 2.12-1.149.el6_6.5 updates 612 k
        kernel-headers x86_64 2.6.32-504.12.2.el6 updates 3.3 M
        libgomp x86_64 4.4.7-11.el6 base 133 k
        mpfr x86_64 2.4.1-6.el6 base 157 k
        ppl x86_64 0.10.2-11.el6 base 1.3 M
        Updating for dependencies:
        glibc x86_64 2.12-1.149.el6_6.5 updates 3.8 M
        glibc-common x86_64 2.12-1.149.el6_6.5 updates 14 M
        libgcc x86_64 4.4.7-11.el6 base 102 k

        Transaction Summary
        ============================================================================================
        Install 9 Package(s)
        Upgrade 3 Package(s)

        Total download size: 38 M
        Is this ok [y/N]: y
        Downloading Packages:
        (1/12): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm | 93 kB 00:00
        (2/12): cpp-4.4.7-11.el6.x86_64.rpm | 3.7 MB 00:00
        (3/12): gcc-4.4.7-11.el6.x86_64.rpm | 10 MB 00:00
        (4/12): glibc-2.12-1.149.el6_6.5.x86_64.rpm | 3.8 MB 00:00
        (5/12): glibc-common-2.12-1.149.el6_6.5.x86_64.rpm | 14 MB 00:00
        (6/12): glibc-devel-2.12-1.149.el6_6.5.x86_64.rpm | 983 kB 00:00
        (7/12): glibc-headers-2.12-1.149.el6_6.5.x86_64.rpm | 612 kB 00:00
        (8/12): kernel-headers-2.6.32-504.12.2.el6.x86_64.rpm | 3.3 MB 00:00
        (9/12): libgcc-4.4.7-11.el6.x86_64.rpm | 102 kB 00:00
        (10/12): libgomp-4.4.7-11.el6.x86_64.rpm | 133 kB 00:00
        (11/12): mpfr-2.4.1-6.el6.x86_64.rpm | 157 kB 00:00
        (12/12): ppl-0.10.2-11.el6.x86_64.rpm | 1.3 MB 00:00
        --------------------------------------------------------------------------------------------
        Total 20 MB/s | 38 MB 00:01
        Running rpm_check_debug
        Running Transaction Test
        Transaction Test Succeeded
        Running Transaction
        Updating : libgcc-4.4.7-11.el6.x86_64 1/15
        Updating : glibc-2.12-1.149.el6_6.5.x86_64 2/15
        Updating : glibc-common-2.12-1.149.el6_6.5.x86_64 3/15
        Installing : libgomp-4.4.7-11.el6.x86_64 4/15
        Installing : mpfr-2.4.1-6.el6.x86_64 5/15
        Installing : cpp-4.4.7-11.el6.x86_64 6/15
        Installing : ppl-0.10.2-11.el6.x86_64 7/15
        Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 8/15
        Installing : kernel-headers-2.6.32-504.12.2.el6.x86_64 9/15
        Installing : glibc-headers-2.12-1.149.el6_6.5.x86_64 10/15
        Installing : glibc-devel-2.12-1.149.el6_6.5.x86_64 11/15
        Installing : gcc-4.4.7-11.el6.x86_64 12/15
        Cleanup : glibc-2.12-1.132.el6.x86_64 13/15
        Cleanup : glibc-common-2.12-1.132.el6.x86_64 14/15
        Cleanup : libgcc-4.4.7-4.el6.x86_64 15/15
        Verifying : kernel-headers-2.6.32-504.12.2.el6.x86_64 1/15
        Verifying : gcc-4.4.7-11.el6.x86_64 2/15
        Verifying : glibc-common-2.12-1.149.el6_6.5.x86_64 3/15
        Verifying : libgcc-4.4.7-11.el6.x86_64 4/15
        Verifying : glibc-2.12-1.149.el6_6.5.x86_64 5/15
        Verifying : libgomp-4.4.7-11.el6.x86_64 6/15
        Verifying : glibc-devel-2.12-1.149.el6_6.5.x86_64 7/15
        Verifying : glibc-headers-2.12-1.149.el6_6.5.x86_64 8/15
        Verifying : mpfr-2.4.1-6.el6.x86_64 9/15
        Verifying : cpp-4.4.7-11.el6.x86_64 10/15
        Verifying : ppl-0.10.2-11.el6.x86_64 11/15
        Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 12/15
        Verifying : glibc-2.12-1.132.el6.x86_64 13/15
        Verifying : glibc-common-2.12-1.132.el6.x86_64 14/15
        Verifying : libgcc-4.4.7-4.el6.x86_64 15/15

        Installed:
        gcc.x86_64 0:4.4.7-11.el6

        Dependency Installed:
        cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.7-11.el6
        glibc-devel.x86_64 0:2.12-1.149.el6_6.5 glibc-headers.x86_64 0:2.12-1.149.el6_6.5
        kernel-headers.x86_64 0:2.6.32-504.12.2.el6 libgomp.x86_64 0:4.4.7-11.el6
        mpfr.x86_64 0:2.4.1-6.el6 ppl.x86_64 0:0.10.2-11.el6

        Dependency Updated:
        glibc.x86_64 0:2.12-1.149.el6_6.5 glibc-common.x86_64 0:2.12-1.149.el6_6.5
        libgcc.x86_64 0:4.4.7-11.el6

        Complete!
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# make
        gcc -c main.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c utility.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c prelogin.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c ftpcmdio.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c postlogin.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c privsock.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c tunables.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c ftpdataio.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c secbuf.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c ls.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c postprivparent.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c logging.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c str.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c netstr.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c sysstr.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c strlist.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c banner.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c filestr.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c parseconf.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c secutil.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c ascii.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c oneprocess.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c twoprocess.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c privops.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c standalone.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c hash.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c tcpwrap.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c ipaddrparse.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c access.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c features.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c readwrite.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c opts.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c ssl.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c sslslave.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c ptracesandbox.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c ftppolicy.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c sysutil.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c sysdeputil.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -c seccompsandbox.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
        gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o seccompsandbox.o -Wl,-s -fPIE -pie -Wl,-z,relro -Wl,-z,now `./vsf_findlibs.sh`
        /usr/bin/ld: cannot find -lcap
        collect2: ld returned 1 exit status
        make: *** [vsftpd] Error 1
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# yum install libcap-devel
        Loaded plugins: fastestmirror
        Loading mirror speeds from cached hostfile
        * base: www.ftp.ne.jp
        * extras: www.ftp.ne.jp
        * updates: www.ftp.ne.jp
        Setting up Install Process
        Resolving Dependencies
        --> Running transaction check
        ---> Package libcap-devel.x86_64 0:2.16-5.5.el6 will be installed
        --> Finished Dependency Resolution

        Dependencies Resolved

        ============================================================================================
        Package Arch Version Repository Size
        ============================================================================================
        Installing:
        libcap-devel x86_64 2.16-5.5.el6 base 24 k

        Transaction Summary
        ============================================================================================
        Install 1 Package(s)

        Total download size: 24 k
        Installed size: 15 k
        Is this ok [y/N]: ^H^H^H^H
        Is this ok [y/N]: y
        Downloading Packages:
        libcap-devel-2.16-5.5.el6.x86_64.rpm | 24 kB 00:00
        Running rpm_check_debug
        Running Transaction Test
        Transaction Test Succeeded
        Running Transaction
        Installing : libcap-devel-2.16-5.5.el6.x86_64 1/1
        Verifying : libcap-devel-2.16-5.5.el6.x86_64 1/1

        Installed:
        libcap-devel.x86_64 0:2.16-5.5.el6

        Complete!
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# make
        gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o seccompsandbox.o -Wl,-s -fPIE -pie -Wl,-z,relro -Wl,-z,now `./vsf_findlibs.sh`
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# ls -ltr
        total 1616
        -rw-r--r--. 1 1000 1000 113 Feb 2 2008 tcpwrap.h
        -rw-r--r--. 1 1000 1000 1172 Feb 2 2008 SPEED
        -rw-r--r--. 1 1000 1000 865 Feb 2 2008 secbuf.h
        -rw-r--r--. 1 1000 1000 125 Feb 2 2008 REWARD
        -rw-r--r--. 1 1000 1000 397 Feb 2 2008 postprivparent.h
        drwxr-xr-x. 2 1000 1000 4096 Feb 2 2008 port
        -rw-r--r--. 1 1000 1000 566 Feb 2 2008 ipaddrparse.h
        -rw-r--r--. 1 1000 1000 5512 Feb 2 2008 INSTALL
        -rw-r--r--. 1 1000 1000 1392 Feb 2 2008 AUDIT
        -rw-r--r--. 1 1000 1000 770 Feb 2 2008 access.h
        drwxr-xr-x. 2 1000 1000 4096 Feb 2 2008 xinetd.d
        -rw-r--r--. 1 1000 1000 606 Feb 2 2008 standalone.h
        -rw-r--r--. 1 1000 1000 1713 Feb 2 2008 REFS
        -rw-r--r--. 1 1000 1000 2115 Feb 2 2008 README.ssl
        -rw-r--r--. 1 1000 1000 317 Feb 2 2008 postlogin.h
        -rw-r--r--. 1 1000 1000 312 Feb 2 2008 LICENSE
        drwxr-xr-x. 8 1000 1000 4096 Feb 2 2008 EXAMPLE
        -rw-r--r--. 1 1000 1000 1130 Feb 2 2008 utility.h
        -rw-r--r--. 1 1000 1000 1261 Feb 2 2008 TUNING
        -rw-r--r--. 1 1000 1000 392 Feb 2 2008 SIZE
        -rw-r--r--. 1 1000 1000 2370 Feb 2 2008 secbuf.c
        -rw-r--r--. 1 1000 1000 112 Feb 2 2008 README.security
        -rw-r--r--. 1 1000 1000 419 Feb 2 2008 prelogin.h
        -rw-r--r--. 1 1000 1000 5017 Feb 2 2008 ipaddrparse.c
        -rw-r--r--. 1 1000 1000 469 Feb 2 2008 hash.h
        -rw-r--r--. 1 1000 1000 834 Feb 2 2008 filestr.h
        -rw-r--r--. 1 1000 1000 107 Feb 2 2008 filesize.h
        drwxr-xr-x. 5 1000 1000 4096 Feb 2 2008 dummyinc
        -rw-r--r--. 1 1000 1000 18288 Feb 2 2008 COPYING
        -rw-r--r--. 1 1000 1000 1097 Feb 2 2008 banner.h
        -rw-r--r--. 1 1000 1000 144 Feb 2 2008 features.h
        -rw-r--r--. 1 1000 1000 2908 Feb 2 2008 BENCHMARKS
        -rw-r--r--. 1 1000 1000 2392 Feb 12 2008 ftpcodes.h
        -rw-r--r--. 1 1000 1000 132 Feb 12 2008 opts.h
        -rw-r--r--. 1 1000 1000 481 Feb 12 2008 opts.c
        -rw-r--r--. 1 1000 1000 3460 Jul 29 2008 ftpdataio.h
        -rw-r--r--. 1 1000 1000 2337 Jul 30 2008 logging.h
        -rw-r--r--. 1 1000 1000 2026 Dec 9 2008 ascii.h
        -rw-r--r--. 1 1000 1000 2015 Dec 9 2008 ascii.c
        -rw-r--r--. 1 1000 1000 435 Dec 11 2008 sslslave.h
        -rw-r--r--. 1 1000 1000 1187 Dec 12 2008 ssl.h
        drwxr-xr-x. 2 1000 1000 4096 Dec 17 2008 RedHat
        -rw-r--r--. 1 1000 1000 929 Dec 17 2008 tcpwrap.c
        -rw-r--r--. 1 1000 1000 465 Dec 18 2008 ftppolicy.h
        -rw-r--r--. 1 1000 1000 11306 Jan 7 2009 ptracesandbox.h
        -rw-r--r--. 1 1000 1000 4016 May 21 2009 privsock.c
        -rw-r--r--. 1 1000 1000 4876 Jul 7 2009 privsock.h
        -rw-r--r--. 1 1000 1000 2386 Jul 7 2009 oneprocess.h
        -rw-r--r--. 1 1000 1000 2485 Jul 7 2009 twoprocess.h
        -rw-r--r--. 1 1000 1000 116 Jul 7 2009 COPYRIGHT
        -rw-r--r--. 1 1000 1000 1158 Jul 14 2009 parseconf.h
        drwxr-xr-x. 2 1000 1000 4096 Jul 17 2009 SECURITY
        -rw-r--r--. 1 1000 1000 2065 Jul 17 2009 vsftpd.8
        -rw-r--r--. 1 1000 1000 34332 Oct 19 2009 vsftpd.conf.5
        -rw-r--r--. 1 1000 1000 564 Nov 12 2009 readwrite.h
        -rw-r--r--. 1 1000 1000 3023 Mar 18 2010 privops.h
        -rw-r--r--. 1 1000 1000 2685 Mar 26 2010 sysdeputil.h
        -rw-r--r--. 1 1000 1000 1463 Aug 18 2010 sysstr.h
        -rw-r--r--. 1 1000 1000 2019 Feb 15 2011 ls.h
        -rw-r--r--. 1 1000 1000 1325 Feb 15 2011 access.c
        -rw-r--r--. 1 1000 1000 32805 Dec 14 2011 ptracesandbox.c
        -rw-r--r--. 1 1000 1000 3835 Dec 14 2011 sysstr.c
        -rw-r--r--. 1 1000 1000 1213 Dec 14 2011 features.c
        -rw-r--r--. 1 1000 1000 4593 Dec 17 2011 vsftpd.conf
        -rw-r--r--. 1 1000 1000 12942 Dec 17 2011 FAQ
        -rw-r--r--. 1 1000 1000 9385 Jan 8 2012 ftppolicy.c
        -rwxr-xr-x. 1 1000 1000 2449 Mar 28 2012 vsf_findlibs.sh
        -rw-r--r--. 1 1000 1000 1980 Mar 28 2012 secutil.h
        -rw-r--r--. 1 1000 1000 3735 Mar 28 2012 secutil.c
        -rw-r--r--. 1 1000 1000 8623 Mar 28 2012 tunables.h
        -rw-r--r--. 1 1000 1000 822 Mar 28 2012 BUGS
        -rw-r--r--. 1 1000 1000 372 Mar 28 2012 seccompsandbox.h
        -rw-r--r--. 1 1000 1000 2741 Mar 30 2012 netstr.h
        -rw-r--r--. 1 1000 1000 2877 Mar 30 2012 netstr.c
        -rw-r--r--. 1 1000 1000 5144 Apr 2 2012 readwrite.c
        -rw-r--r--. 1 1000 1000 19753 Apr 3 2012 ssl.c
        -rw-r--r--. 1 1000 1000 3315 Apr 3 2012 ftpcmdio.h
        -rw-r--r--. 1 1000 1000 6843 Apr 3 2012 ftpcmdio.c
        -rw-r--r--. 1 1000 1000 8449 Apr 3 2012 prelogin.c
        -rw-r--r--. 1 1000 1000 3584 Apr 3 2012 sslslave.c
        -rw-r--r--. 1 1000 1000 767 Apr 3 2012 defs.h
        -rw-r--r--. 1 1000 1000 18742 Apr 3 2012 ftpdataio.c
        -rw-r--r--. 1 1000 1000 9877 Apr 4 2012 tunables.c
        -rw-r--r--. 1 1000 1000 2252 Apr 5 2012 session.h
        -rw-r--r--. 1 1000 1000 1833 Apr 5 2012 TODO
        -rw-r--r--. 1 1000 1000 4782 Sep 16 2012 postprivparent.c
        -rw-r--r--. 1 1000 1000 4220 Sep 16 2012 oneprocess.c
        -rw-r--r--. 1 1000 1000 1171 Sep 16 2012 utility.c
        -rw-r--r--. 1 1000 1000 10458 Sep 16 2012 logging.c
        -rw-r--r--. 1 1000 1000 2126 Sep 16 2012 banner.c
        -rw-r--r--. 1 1000 1000 10320 Sep 16 2012 main.c
        -rw-r--r--. 1 1000 1000 14870 Sep 16 2012 sysutil.h
        -rw-r--r--. 1 1000 1000 897 Sep 16 2012 strlist.h
        -rw-r--r--. 1 1000 1000 13617 Sep 16 2012 ls.c
        -rw-r--r--. 1 1000 1000 4998 Sep 16 2012 str.h
        -rw-r--r--. 1 1000 1000 61934 Sep 16 2012 sysutil.c
        -rw-r--r--. 1 1000 1000 15494 Sep 16 2012 str.c
        -rw-r--r--. 1 1000 1000 3985 Sep 16 2012 strlist.c
        -rw-r--r--. 1 1000 1000 1431 Sep 16 2012 filestr.c
        -rw-r--r--. 1 1000 1000 12422 Sep 16 2012 parseconf.c
        -rw-r--r--. 1 1000 1000 16088 Sep 16 2012 twoprocess.c
        -rw-r--r--. 1 1000 1000 11444 Sep 16 2012 privops.c
        -rw-r--r--. 1 1000 1000 7848 Sep 16 2012 standalone.c
        -rw-r--r--. 1 1000 1000 3337 Sep 16 2012 hash.c
        -rw-r--r--. 1 1000 1000 15713 Sep 18 2012 seccompsandbox.c
        -rw-r--r--. 1 1000 1000 59072 Sep 18 2012 postlogin.c
        -rw-r--r--. 1 1000 1000 1361 Sep 18 2012 README
        -rw-r--r--. 1 1000 1000 102 Sep 18 2012 vsftpver.h
        -rw-r--r--. 1 1000 1000 67038 Sep 18 2012 Changelog
        -rw-r--r--. 1 root root 152 Mar 25 20:30 builddefs.h.org
        -rw-r--r--. 1 1000 1000 153 Mar 25 20:31 builddefs.h
        -rw-r--r--. 1 root root 1672 Mar 25 20:31 Makefile.org
        -rw-r--r--. 1 1000 1000 1698 Mar 25 20:32 Makefile
        -rw-r--r--. 1 root root 32107 Mar 25 20:33 sysdeputil.c.org
        -rw-r--r--. 1 1000 1000 32109 Mar 25 20:35 sysdeputil.c
        -rw-r--r--. 1 root root 11104 Mar 25 20:39 main.o
        -rw-r--r--. 1 root root 2800 Mar 25 20:39 utility.o
        -rw-r--r--. 1 root root 10328 Mar 25 20:39 prelogin.o
        -rw-r--r--. 1 root root 8080 Mar 25 20:39 ftpcmdio.o
        -rw-r--r--. 1 root root 60696 Mar 25 20:39 postlogin.o
        -rw-r--r--. 1 root root 6528 Mar 25 20:39 privsock.o
        -rw-r--r--. 1 root root 14136 Mar 25 20:39 tunables.o
        -rw-r--r--. 1 root root 14016 Mar 25 20:39 ftpdataio.o
        -rw-r--r--. 1 root root 2272 Mar 25 20:39 secbuf.o
        -rw-r--r--. 1 root root 11992 Mar 25 20:39 ls.o
        -rw-r--r--. 1 root root 4208 Mar 25 20:39 postprivparent.o
        -rw-r--r--. 1 root root 14488 Mar 25 20:39 logging.o
        -rw-r--r--. 1 root root 15320 Mar 25 20:39 str.o
        -rw-r--r--. 1 root root 3832 Mar 25 20:39 netstr.o
        -rw-r--r--. 1 root root 6800 Mar 25 20:39 sysstr.o
        -rw-r--r--. 1 root root 4080 Mar 25 20:39 strlist.o
        -rw-r--r--. 1 root root 2736 Mar 25 20:39 banner.o
        -rw-r--r--. 1 root root 2744 Mar 25 20:39 filestr.o
        -rw-r--r--. 1 root root 24256 Mar 25 20:39 parseconf.o
        -rw-r--r--. 1 root root 5184 Mar 25 20:39 secutil.o
        -rw-r--r--. 1 root root 1672 Mar 25 20:39 ascii.o
        -rw-r--r--. 1 root root 5624 Mar 25 20:39 oneprocess.o
        -rw-r--r--. 1 root root 15328 Mar 25 20:39 twoprocess.o
        -rw-r--r--. 1 root root 11328 Mar 25 20:39 privops.o
        -rw-r--r--. 1 root root 9152 Mar 25 20:39 standalone.o
        -rw-r--r--. 1 root root 3600 Mar 25 20:39 hash.o
        -rw-r--r--. 1 root root 2168 Mar 25 20:39 tcpwrap.o
        -rw-r--r--. 1 root root 5568 Mar 25 20:39 ipaddrparse.o
        -rw-r--r--. 1 root root 2600 Mar 25 20:39 access.o
        -rw-r--r--. 1 root root 3560 Mar 25 20:39 features.o
        -rw-r--r--. 1 root root 4512 Mar 25 20:39 readwrite.o
        -rw-r--r--. 1 root root 1936 Mar 25 20:39 opts.o
        -rw-r--r--. 1 root root 3120 Mar 25 20:39 ssl.o
        -rw-r--r--. 1 root root 4552 Mar 25 20:39 sslslave.o
        -rw-r--r--. 1 root root 7824 Mar 25 20:39 ptracesandbox.o
        -rw-r--r--. 1 root root 9472 Mar 25 20:39 ftppolicy.o
        -rw-r--r--. 1 root root 58928 Mar 25 20:39 sysutil.o
        -rw-r--r--. 1 root root 16392 Mar 25 20:39 sysdeputil.o
        -rw-r--r--. 1 root root 12576 Mar 25 20:39 seccompsandbox.o
        -rwxr-xr-x. 1 root root 155928 Mar 25 20:41 vsftpd
        [root@cntest2 vsftpd-3.0.2]# make install
        if [ -x /usr/local/sbin ]; then ¥
        install -m 755 vsftpd /usr/local/sbin/vsftpd; ¥
        else ¥
        install -m 755 vsftpd /usr/sbin/vsftpd; fi
        if [ -x /usr/local/man ]; then ¥
        install -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; ¥
        install -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; ¥
        elif [ -x /usr/share/man ]; then ¥
        install -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; ¥
        install -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; ¥
        else ¥
        install -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; ¥
        install -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi
        if [ -x /etc/xinetd.d ]; then ¥
        install -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd; fi
        [root@cntest2 vsftpd-3.0.2]# ls -ltr vsftpd*
        -rw-r--r--. 1 1000 1000 2065 Jul 17 2009 vsftpd.8
        -rw-r--r--. 1 1000 1000 34332 Oct 19 2009 vsftpd.conf.5
        -rw-r--r--. 1 1000 1000 4593 Dec 17 2011 vsftpd.conf
        -rwxr-xr-x. 1 root root 155928 Mar 25 20:41 vsftpd
        [root@cntest2 vsftpd-3.0.2]# pwd
        /usr/local/src/vsftpd-3.0.2
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# touch /etc/vsftpd/vsftpd.chroot_list
        [root@cntest2 vsftpd-3.0.2]# vi /etc/xinetd.d/vsftpd
        [root@cntest2 vsftpd-3.0.2]# vi /etc/xinetd.d/vsftpd
        [root@cntest2 vsftpd-3.0.2]# cp /etc/xinetd.d/vsftpd /etc/xinetd.d/^C
        [root@cntest2 vsftpd-3.0.2]# cp RedHat/vsftpd.pam /etc/pam.d/vsftpd ^C
        [root@cntest2 vsftpd-3.0.2]# diff -c RedHat/vsftpd.pam /etc/pam.d/vsftpd
        *** RedHat/vsftpd.pam 2008-02-02 01:30:40.000000000 +0000
        --- /etc/pam.d/vsftpd 2014-10-17 23:54:34.000000000 +0000
        ***************
        *** 1,6 ****
        #%PAM-1.0
        ! auth required /lib/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
        ! auth required /lib/security/pam_unix.so shadow nullok
        ! auth required /lib/security/pam_shells.so
        ! account required /lib/security/pam_unix.so
        ! session required /lib/security/pam_unix.so
        --- 1,8 ----
        #%PAM-1.0
        ! session optional pam_keyinit.so force revoke
        ! auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
        ! auth required pam_shells.so
        ! auth include password-auth
        ! account include password-auth
        ! session required pam_loginuid.so
        ! session include password-auth
        [root@cntest2 vsftpd-3.0.2]# cp /etc/pam.d/vsftpd /etc/pam.d/vsftpd.2.2.2
        [root@cntest2 vsftpd-3.0.2]# cp RedHat/vsftpd.pam /etc/pam.d/vsftpd
        cp: overwrite `/etc/pam.d/vsftpd'? y
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# install -m 755 vsftpd /usr/local/sbin/vsftpd
        [root@cntest2 vsftpd-3.0.2]# install -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8
        [root@cntest2 vsftpd-3.0.2]# install -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5
        [root@cntest2 vsftpd-3.0.2]# install -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd
        [root@cntest2 vsftpd-3.0.2]# cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.org
        [root@cntest2 vsftpd-3.0.2]# vi /etc/vsftpd/vsftpd.conf
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# vi /etc/ftpusers
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# touch /etc/ftpusers
        [root@cntest2 vsftpd-3.0.2]# vi /etc/ftpusers
        [root@cntest2 vsftpd-3.0.2]# vi /etc/vsftpd/user_list
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# vi /etc/vsftpd/vsftpd.conf
        [root@cntest2 vsftpd-3.0.2]#
        [root@cntest2 vsftpd-3.0.2]# chkconfig --list | grep ftp
        vsftpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
        [root@cntest2 vsftpd-3.0.2]# chkconfig vsftpd on
        [root@cntest2 vsftpd-3.0.2]# chkconfig --list | grep ftp
        vsftpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
        [root@cntest2 vsftpd-3.0.2]# ps -ef | grep vsftpd
        root 1652 1153 0 21:07 pts/1 00:00:00 grep vsftpd
        [root@cntest2 vsftpd-3.0.2]# service vsftpd start
        Starting vsftpd for vsftpd: 500 OOPS: unrecognised variable in config file: allow_writeable_chroot
        [FAILED]
        [root@cntest2 vsftpd-3.0.2]# v
        category:- | by:ittoocomments(0)trackbacks(0) | -

        vsftpd make とおった

        2015.03.25 Wednesday 07:02
        0
          yum install g++
          はまだエラー

          yum install gcc
          したらとおった


          -c hash.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
          gcc -c tcpwrap.c -O2 -march=x86-64 -mtune=atom -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
          tcpwrap.c:16:20: error: tcpd.h: No such file or directory
          tcpwrap.c: In function ‘vsf_tcp_wrapper_ok’:
          tcpwrap.c:29: error: storage size of ‘req’ isn’t known
          cc1: warnings being treated as errors
          tcpwrap.c:31: error: implicit declaration of function ‘request_init’
          tcpwrap.c:31: error: ‘RQ_DAEMON’ undeclared (first use in this function)
          tcpwrap.c:31: error: (Each undeclared identifier is reported only once



          参考
          http://www.creativ-tech.com/kb/vsftpd-setup-howto/

          $ make
          Error: tcpwrap.c:16:20: error: tcpd.h: No such file or directory
          $ yum install tcp_wrappers-devel.x86_64
          $ make clean
          $ make



          これで上が通った



          /usr/bin/ld: cannot find -lcap
          collect2: ld returned 1 exit status
          make: *** [vsftpd] Error 1



          have to install libcap-devel package


          yum install libcap-devel


          これでOK!!!



          ★★★
          [root@cntest vsftpd-3.0.2]# more builddefs.h
          #ifndef VSF_BUILDDEFS_H
          #define VSF_BUILDDEFS_H

          #define VSF_BUILD_TCPWRAPPERS
          #define VSF_BUILD_PAM
          #undef VSF_BUILD_SSL

          #endif /* VSF_BUILDDEFS_H */

          [root@cntest vsftpd-3.0.2]#



          ★★★

          [root@cntest vsftpd-3.0.2]# history
          1 pwd
          2 cd /home
          3 ls
          4 mkdir cdrom
          5 cd cdrom
          6 ls
          7 wget https://security.appspot.com/downloads/vsftpd-3.0.2.tar.gz
          8 ls
          9 gunzip vsftpd-3.0.2.tar.gz
          10 ls -ltr
          11 tar xvf vsftpd-3.0.2.tar
          12 ls -ltr
          13 cd vsftpd-3.0.2
          14 ls -ltr
          15 cp Makefile Makefile.org
          16 cp builddefs.h builddefs.h.org
          17 vi builddefs.h
          18 vi Makefile
          19 make
          20 vi Makefile
          21 gcc
          22 rpm -qa | grep gcc
          23 vi Makefile
          24 make
          25 yum install g++
          26 make
          27 ./configure
          28 vi Makefile
          29 make
          30 apt-get install gcc
          31 yum install gcc
          32 make
          33 yum install libwrap
          34 vi Makefile
          35 libwrap
          36 yum install tcp_wrappers-devel.x86_64
          37 make clean
          38 make
          39 df
          40 yum install libcap-devel
          41 make
          42 history
          [root@cntest vsftpd-3.0.2]#

          category:- | by:ittoocomments(0)trackbacks(0) | -

          ftp3

          2015.03.23 Monday 07:33
          0
            11 wget wget http://ftp.riken.jp/net/apache//httpd/httpd-2.4.12.tar.bz2
            12 ls -l
            13 tar jxf httpd-2.4.12.tar.bz2
            14 ls -ltr
            15 cd httpd-2.4.12
            16 ls -l
            17 cd /home
            18 la
            19 s
            20 ls
            21 cd software/
            22 ls
            23 wget https://security.appspot.com/downloads/vsftpd-3.0.2.tar.gz
            24 l
            25 ls -l
            26 gunzip vsftpd-3.0.2.tar.gz
            27 ls -l
            28 tar -xvf vsftpd-3.0.2.tar
            29 ls -l
            30 cd vsftpd-3.0.2
            31 ls -l
            32 vi builddefs.h
            33 vi Makefile
            34 make
            35 ls v*
            36 vi Makefile
            37 ls -ltr
            38 vi builddefs.h
            39 make
            40 gcc
            41 cat /proc/version
            42 cat /proc/version
            43 which gcc
            44 cd /usr
            45 find ./ -name gcc
            46 pwd
            47 cd /hom
            48 cd /home
            49 ls
            50 cd software/
            51 ls
            52 wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.gz
            53 ls -ltr
            54 gunzip gcc-4.9.2.tar.gz
            55 ls -ltr
            56 tar xvf gcc-4.9.2.tar
            57 ls -ltr
            58 vf gcc-4.9.2
            59 cd gcc-4.9.2
            60 cd gcc-4gcc-4.9.2
            61 pwd
            62 ./configure
            63 yum list
            64 yum list | grep ftp
            65 ps -ef | grep ftp
            66 cat /proc/version
            67 cat /etc/redhat-release
            68 cd ../
            69 ls
            70 cd vsftpd-3.0.2
            71 ls -ltr
            72 make
            73 ]
            74 make
            75 pwd
            76 ps -ef
            77 ps -ef
            78 ps -ef | grep ftp
            79 cd /home/
            80 ls
            81 cd software/cd vs
            82 cd software/
            83 l
            84 ls
            85 cd vsftpd-3.0.2
            86 ls -ltr
            87 s¥ls
            88 ls
            89 ls *rpm
            90 ls
            91 cd ../
            92 ls
            93 ls -ltr
            94 mv vsftpd-3.0.2 wk_vsftpd-3.0.2
            95 mv vsftpd-3.0.2.tar wk_vsftpd-3.0.2.tar
            96 ls -ltr
            97 wget http://vault.centos.org/6.6/os/Source/SPackages/vsftpd-2.2.2-12.el6_5.1.src.rpm
            98 ls
            99 ls -ltr
            100 rpm -ivh vsftpd-2.2.2-12.el6_5.1.src.rpm
            101 df
            102 ls -l vsftpd-2.2.2-12.el6_5.1.src.rpm
            103 pwd
            104 ls
            105 pwd
            106 rpm -ivh /home/software/vsftpd-2.2.2-12.el6_5.1.src.rpm
            107 ls -l
            108 mv vsftpd-2.2.2-12.el6_5.1.src.rpm wk_vsftpd-2.2.2-12.el6_5.1.src.rpm]¥]
            109 l
            110 ls -l
            111 mv wk_vsftpd-2.2.2-12.el6_5.1.src.rpm]] wk_vsftpd-2.2.2-12.el6_5.1.src.rpm
            112 ls -ltr
            113 wget http://ftp.riken.jp/Linux/centos/6/os/x86_64/Packages/vsftpd-2.2.2-12.el6_5.1.x86_64.rpm
            114 ls -l
            115 rpm -ivh vsftpd-2.2.2-12.el6_5.1.x86_64.rpm
            116 ls -ltr /etc/vsftpd/vsftpd.conf
            117 vi /etc/vsftpd/vsftpd.conf
            118 cd vi /etc/sysconfig/selinux
            119 cd /etc/sysconfig/
            120 ls -l
            121 ls
            122 cp selinux selinux.org
            123 pwd
            124 vi selinux
            125 cp /etc/sysconfig/iptables /etc/sysconfig/iptables.org
            126 vi /etc/sysconfig/iptables
            127 cat /etc/sysconfig/iptables-config
            128 ]
            129 cp /etc/sysconfig/iptables-config /etc/sysconfig/iptables-config.org
            130 iptables -vnL
            131 service iptables start
            132 iptables -vnL
            133 ps -ef | grep ftp
            134 chkconfig --list iptables
            135 service vsftpd restart
            136 ps -ef | grep ftp
            137 reboot
            138 ps -ef | grep ftp
            139 chkconfig --list vsftpd
            140 chkconfig vsftpd on
            141 chkconfig --list vsftpd
            142 iptables -vnL
            143 chkconfig --list iptables
            144 chkconfig iptables on
            145 chkconfig --list iptables
            146 iptables -vnL
            147 ps -ef | grep iptables
            148 service iptables start
            149 ps -ef | grep iptables
            150 iptables -vnL
            151 ps -ef | grep iptables
            152 ps -ef | grep iptable
            153 ps -ef | grep ftp
            154 service iptables vsftpd
            155 service vsftpd start
            156 ps -ef | grep ftp
            157 ps -ef | grep iptable
            158 ps -ef | grep ftp
            159 iptables -vnL
            160 cat /etc/vsftpd/user_list
            161 cat /etc/vsftpd/ftpusers
            162 pwd
            163 /usr/sbin/useradd -d /home/tamachi -s /bin/tcsh tamachi
            164 cd /home/tamachi
            165 chown tamachi tamachi
            166 ls
            167 pwd
            168 cd ../
            169 chown tamachi tamachi
            170 chgrp tamachi tamachi
            171 passwd tamachi
            172 l
            173 su - tamachi
            174 cd /etc/
            175 ls
            176 cd vsftpd/
            177 ls
            178 vi vsftpd.conf
            179 history | grep service
            180 service vsftpd restart
            181 vi /etc/sysconfig/iptables
            182 vi /etc/sysconfig/iptables-config
            183 cd /etc/sysconfig/
            184 ls -ltr
            185 diff iptables-config.org iptables-config
            186 vi iptables-config
            187 service iptables restart
            188 iptables -vnL
            189 service vsftpd restart
            190 cat >> /etc/vsftpd.conf << "EOF"
            191 background=YES
            192 listen=YES
            193 nopriv_user=vsftpd
            194 secure_chroot_dir=/usr/share/vsftpd/empty
            195 EOF
            196 cd /home/software/
            197 ls
            198 cd wk_vsftpd-3.0.2
            199 ls
            200 make install
            201 make install-vsftpd
            202 ls -l /usr/local/sbin
            203 install -m 755 vsftpd /usr/local/sbin/vsftpd
            204 ls -l /usr/local/man
            205 ls -l /usr/share/man
            206 install -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8;
            207 install -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5;
            208 ld ^l
            209 ls -l /etc/xinetd.d
            210 install -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd
            211 vsftpd
            212 ps -ef | grep vsftpd
            213 service vsftpd restart
            214 vi /etc/vsftpd.conf
            215 reboot
            216 cd /home/
            217 ls
            218 cd software/
            219 ls -ltr
            220 cd wk_vsftpd-
            221 cd wk_vsftpd-3.0.2
            222 ls -ltr
            223 find /usr/ -name "php.ini"
            224 which vsftpd
            225 find /usr/ -name "php.ini"
            226 find /usr/ -name "vsftpd*"
            227 find / -name "vsftpd*"
            228 ps -ef
            229 ls -l /etc/pam.d/vsftpd
            230 ls -l /etc/rc.d/init.d/vsftpd
            231 ls -l /etc/vsftpd
            232 ls -l /etc/logrotate.d/vsftpd
            233 ls -l /usr/sbin/vsftpd
            234 which vsftpd
            235 cd /home
            236 ls
            237 cd software/
            238 ls
            239 ls -ltr
            240 cd wk_vsftpd-3.0.2
            241 ls
            242 cp Makefile Makefile.org
            243 ls -ltr
            244 vi Makefile
            245 cat /etc/procinfo
            246 cat /proc/cpuinfo
            247 vi Makefile
            248 cd /etc
            249 cp -p init.d/vsftpd init.d/vsftpd.org
            250 cp vsftpd/ftpusers vsftpd/ftpusers.org
            251 cp vsftpd/user_list vsftpd/user_list.org
            252 servie vsftpd stop
            253 service vsftpd stop
            254 ps -ef | grep ft@
            255 ps -ef | grep ftp
            256 rpm -e vsftpd
            257 cd ~/src
            258 pwd
            259 cd
            260 cd ~
            261 pwd
            262 cd /home
            263 cd ~/src
            264 cd /home
            265 @wd
            266 pwd
            267 cd ~/
            268 @wd
            269 pwd
            270 cd src
            271 mkdir src
            272 cd /home
            273 ls
            274 cd software/
            275 ls
            276 cd wk_vsftpd-3.0.2
            277 ls
            278 pwd
            279 vi builddefs.h
            280 find / -name "vsftpd*"
            281 vi builddefs.h
            282 which vsftpd
            283 make
            284 vi Makefile
            285 make
            286 vi Makefile
            287 make
            288 which gss
            289 which gcc
            290 yum -y install gcc
            291 make
            292 rpm -qa | grep ftp
            293 vi Makefile
            294 vi builddefs.h
            295 make
            296 vi builddefs.h
            297 make
            298 vi vsf_findlibs.sh
            299 make
            300 vi vsf_findlibs.sh
            301 make
            302 q v
            303 vi vsf_findlibs.sh
            304 make
            305 vsftpd
            306 cp vsftpd /usr/sbin/.
            307 cp vsftpd /usr/sbin/
            308 vsftpd
            309 ps -ef | grep vsftpd
            310 service vsfrpd start
            311 make install
            312 mkdir /etc/vsftpd
            313 cp vsftpd.conf /etc/vsftpd/
            314 touch /etc/vsftpd/vsftpd.chroot_list
            315 cp RedHat/vsftpd.pam /etc/pam.d/vsftpd
            316 install -v -m 755 vsftpd /usr/sbin/vsftpd && install -v -m 644 vsftpd.8 /usr/share/man/man8 && install -v -m 644 vsftpd.conf.5 /usr/share/man/man5 && install -v -m 644 vsftpd.conf /etc
            317 ps -ef | grep ftp
            318 service vsftpd start
            319 vi /etc/xinetd.d/vsftpd
            320 vi /etc/vsftpd/vsftpd.conf
            321 /etc/init.d/xinetd restart
            322 cd /etc/
            323 cd init.d
            324 ls
            325 cat vsftpd.org
            326 ls
            327 cd /etc/rc.d
            328 ls
            329 cd init.d/
            330 ls
            331 cat vsftpd.org
            332 ls
            333 cp vsftpd.org vsftpd
            334 /etc/init.d/xinetd restart
            335 service vsftpd start
            336 ps -ef | grep ftp
            337 service vsftpd start
            338 service vsftpd restart
            339 service vsftpd start
            340 ps -ef | grep ftp
            341 cd /home/software/
            342 ls
            343 cd wk_vsftpd-3.0.2
            344 ls -ltr
            345 vsftpd
            346 ps -ef | grep ftp
            347 ftp localhost
            348 vi /etc/vsftpd/c
            349 vi /etc/vsftpd.conf
            350 vsftpd stop
            351 vsftpd restart
            352 vsftpd
            353 ps -ef | grep ftp
            354 date
            355 k
            356 kill 1344
            357 vsftpd
            358 ps -ef | grep ftp
            359 cd /etc/vsftpd
            360 ls -ltr
            361 vi vsftpd.conf
            362 ps -ef | grep ftp
            363 cat /etc/vsftpd/chroot_list
            364 cd /etc/vsftpd/chroot_list
            365 cd /etc/vsftpd/
            366 ls -ltr
            367 touch chroot_list
            368 cd ../
            369 ls
            370 ls ch*
            371 touch /etc/vsftpd.chroot_list
            372 vi /etc/vsftpd/vsftpd.conf
            373 ls -l /home
            374 chmod -R 777 tamachi
            375 chmod -R 777 /homr/tamachi
            376 vi /etc/vsftpd/vsftpd.conf
            377 vi /etc/vsftpd/user_list
            378 vi /etc/vsftpd/vsftpd.conf
            379 cat /etc/vsftpd.chroot_list
            380 vi /etc/vsftpd/vsftpd.conf
            381 ls -l /etc/vsftpd/vsftpd.conf
            382 date
            383 cat /etc/vsftpd/vsftpd.conf
            384 ]¥
            385 vi /etc/vsftpd/vsftpd.conf
            386 cat /etc/vsftpd/vsftpd.conf
            387 ls -tr /etc/ | tail
            388 ls -ltr /etc/ | tail
            389 ls -ltr /etc/vsftpd | tail
            390 cd /home
            391 ls -ltr
            392 cd software/
            393 ls -ltr
            394 cd wk_vsftpd-3.0.2
            395 ls -ltr
            396 ls -l vsf_f*
            397 cat vsf_findlibs.sh
            398 cat vsf_findlibs.sh | wc
            399 cat -n vsf_findlibs.sh
            400 ls -l Mak*
            401 sdiff -s Makefile Makefile.org
            402 ls -ltr
            403 history
            aaaawk_vsftpd-3.0.2]#
            category:- | by:ittoocomments(0)trackbacks(0) | -

            vs2

            2015.03.23 Monday 07:20
            0
              v

              これを起動させる
              /etc/rc.d/init.d/vsftpd start

              するとプロンプトはかえってこないが
              プロセスは
              [tamachi@cnserver0 ~]$ ps -ef | grep vsftpd
              root 2863 2727 0 21:18 pts/0 00:00:00 /bin/bash /etc/rc.d/init.d/vsftpd start
              root 2869 2863 0 21:18 pts/0 00:00:00 /bin/bash -c ulimit -S -c 0 >/dev/null 2>&1 ; /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
              root 2870 2869 0 21:18 pts/0 00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
              tamachi 2889 2876 0 21:19 pts/1 00:00:00 grep vsftpd
              [tamachi@cnserver0 ~]$

              となる
              http://complete.ddo.jp/linux/vsftpd.html




              530 This FTP server is anonymous only.
              ログインできません

              【回答】
              FTP クライアントから FTP ログオンする場合、以下のエラーで失敗する場合があります。

              This FTP server is anonymous only.
              これは匿名 (anonymous) のみログインが許可されたサーバへ anonymous 以外でログオンした場合に表示されます。(正確にはログオンではなく、ユーザ名を入力した時点でエラー表示されます)
              ローカルユーザのログオンを許可するには /etc/vsftpd/vsftpd.conf ファイルを修正します。

              #匿名ログオンを禁止します。
              anonymous_enable=NO

              #/etc/passwd に記載されたユーザのログオンを許可します。
              local_enable=YES

              また以下のファイルの作成が必要です。(とりあえず空のファイルでも可能)
              /etc/vsftpd/chroot_list



              ・vsftpdアンインストールするのではなくアップデートでうまくいかないか


              ★うごいたの
              # /etc/rc.d/init.d/vsftpd start


              [root@cnserver0 etc]# cat !$
              cat /etc/vsftpd/vsftpd.conf
              # Example config file /etc/vsftpd.conf
              #
              # The default compiled in settings are fairly paranoid. This sample file
              # loosens things up a bit, to make the ftp daemon more usable.
              # Please see vsftpd.conf.5 for all compiled in defaults.
              #
              # READ THIS: This example file is NOT an exhaustive list of vsftpd options.
              # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
              # capabilities.
              #
              # Allow anonymous FTP? (Beware - allowed by default if you comment this out).
              anonymous_enable=NO
              #
              # Uncomment this to allow local users to log in.
              local_enable=YES
              #
              # Uncomment this to enable any form of FTP write command.
              write_enable=YES
              #
              # Default umask for local users is 077. You may wish to change this to 022,
              # if your users expect that (022 is used by most other ftpd's)
              #local_umask=022
              #
              # Uncomment this to allow the anonymous FTP user to upload files. This only
              # has an effect if the above global write enable is activated. Also, you will
              # obviously need to create a directory writable by the FTP user.
              #anon_upload_enable=YES
              #
              # Uncomment this if you want the anonymous FTP user to be able to create
              # new directories.
              #anon_mkdir_write_enable=YES
              #
              # Activate directory messages - messages given to remote users when they
              # go into a certain directory.
              dirmessage_enable=YES
              #
              # Activate logging of uploads/downloads.
              xferlog_enable=YES
              #
              # Make sure PORT transfer connections originate from port 20 (ftp-data).
              connect_from_port_20=YES
              #
              # If you want, you can arrange for uploaded anonymous files to be owned by
              # a different user. Note! Using "root" for uploaded files is not
              # recommended!
              #chown_uploads=YES
              #chown_username=whoever
              #
              # You may override where the log file goes if you like. The default is shown
              # below.
              #xferlog_file=/var/log/vsftpd.log
              #
              # If you want, you can have your log file in standard ftpd xferlog format.
              # Note that the default log file location is /var/log/xferlog in this case.
              #xferlog_std_format=YES
              #
              # You may change the default value for timing out an idle session.
              #idle_session_timeout=600
              #
              # You may change the default value for timing out a data connection.
              #data_connection_timeout=120
              #
              # It is recommended that you define on your system a unique user which the
              # ftp server can use as a totally isolated and unprivileged user.
              #nopriv_user=ftpsecure
              #
              # Enable this and the server will recognise asynchronous ABOR requests. Not
              # recommended for security (the code is non-trivial). Not enabling it,
              # however, may confuse older FTP clients.
              #async_abor_enable=YES
              #
              # By default the server will pretend to allow ASCII mode but in fact ignore
              # the request. Turn on the below options to have the server actually do ASCII
              # mangling on files when in ASCII mode.
              # Beware that on some FTP servers, ASCII support allows a denial of service
              # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
              # predicted this attack and has always been safe, reporting the size of the
              # raw file.
              # ASCII mangling is a horrible feature of the protocol.
              ascii_upload_enable=YES
              ascii_download_enable=YES
              #
              # You may fully customise the login banner string:
              #ftpd_banner=Welcome to blah FTP service.
              #
              # You may specify a file of disallowed anonymous e-mail addresses. Apparently
              # useful for combatting certain DoS attacks.
              #deny_email_enable=YES
              # (default follows)
              #banned_email_file=/etc/vsftpd.banned_emails
              #
              # You may specify an explicit list of local users to #chroot() to their home
              # directory. If chroot_local_user is YES, then this list becomes a list of
              # users to NOT chroot().
              # (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
              # the user does not have write access to the top level directory within the
              # chroot)
              #chroot_local_user=YES
              #chroot_list_enable=YES
              # (default follows)
              #chroot_list_file=/etc/vsftpd.chroot_list
              #
              # You may activate the "-R" option to the builtin ls. This is disabled by
              # default to avoid remote users being able to cause excessive I/O on large
              # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
              # the presence of the "-R" option, so there is a strong case for enabling it.
              #ls_recurse_enable=YES
              #
              # When "listen" directive is enabled, vsftpd runs in standalone mode and
              # listens on IPv4 sockets. This directive cannot be used in conjunction
              # with the listen_ipv6 directive.
              listen=YES
              #
              # This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
              # sockets, you must run two copies of vsftpd with two configuration files.
              # Make sure, that one of the listen options is commented !!
              #listen_ipv6=YES
              #allow_writable_root=YES
              #userlist_file=/etc/vsftpd/user_list
              #userlist_deny=YES
              [root@cnserver0 etc]#


              --------

              [root@cnserver0 etc]# ls -ltr /etc/ | tail
              drwxr-xr-x. 2 root root 4096 Mar 22 15:57 default
              -rw-r--r-- 1 root root 15297 Mar 22 15:58 ld.so.cache
              drwxr-xr-x. 2 root root 4096 Mar 22 16:52 pam.d
              -rw-r--r--. 1 root root 44 Mar 22 17:17 adjtime
              -rw-r--r-- 1 root root 240 Mar 22 17:17 mtab
              -rw-r--r--. 1 root root 113 Mar 22 17:17 resolv.conf
              drwxr-xr-x. 2 root root 4096 Mar 22 17:23 xinetd.d
              -rw-r--r-- 1 root root 4676 Mar 22 21:13 vsftpd.conf
              -rw-r--r-- 1 root root 0 Mar 22 21:37 vsftpd.chroot_list
              drwxr-xr-x. 2 root root 4096 Mar 22 22:11 vsftpd
              [root@cnserver0 etc]# ls -ltr /etc/vsftpd | tail
              total 28
              -rw------- 1 root root 4692 Mar 15 15:29 vsftpd.conf.rpmsave
              -rw------- 1 root root 125 Mar 22 15:43 ftpusers.org
              -rw------- 1 root root 361 Mar 22 15:43 user_list.org
              -rw-r--r-- 1 root root 0 Mar 22 16:52 vsftpd.chroot_list
              -rw-r--r-- 1 root root 0 Mar 22 21:36 chroot_list
              -rw-r--r-- 1 root root 8 Mar 22 21:59 user_list
              -rw-r--r-- 1 root root 4670 Mar 22 22:09 vsftpd.conf
              [root@cnserver0 etc]#



              [root@cnserver0 wk_vsftpd-3.0.2]# cat -n vsf_findlibs.sh
              1 #!/bin/sh
              2 # Cheesy hacky location of additional link libraries.
              3
              4 locate_library() { [ ! "$1*" = "`echo $1*`" ]; }
              5 find_func() { egrep $1 $2 >/dev/null; }
              6
              7 if find_func hosts_access tcpwrap.o; then
              8 echo "-lwrap";
              9 locate_library /lib/libnsl.so && echo "-lnsl";
              10 locate_library /lib64/libnsl.so && echo "-lnsl";
              11 fi
              12
              13 # Look for PAM (done weirdly due to distribution bugs (e.g. Debian) or the
              14 # crypt library.
              15 if find_func pam_start sysdeputil.o; then
              16 locate_library /lib/libpam.so.0 && echo "/lib/libpam.so.0";
              17 locate_library /usr/lib/libpam.so && echo "-lpam";
              18 locate_library /usr/lib64/libpam.so && echo "-lpam";
              19 locate_library /lib/x86_64-linux-gnu/libpam.so.0 && echo "-lpam";
              20 # HP-UX ends shared libraries with .sl
              21 locate_library /usr/lib/libpam.sl && echo "-lpam";
              22 # AIX ends shared libraries with .a
              23 locate_library /usr/lib/libpam.a && echo "-lpam";
              24 else
              25 locate_library /lib/libcrypt.so && echo "-lcrypt";
              26 locate_library /usr/lib/libcrypt.so && echo "-lcrypt";
              27 locate_library /usr/lib64/libcrypt.so && echo "-lcrypt";
              28 locate_library /lib/x86_64-linux-gnu/libcrypt.so && echo "-lcrypt";
              29 fi
              30
              31 # Look for the dynamic linker library. Needed by older RedHat when
              32 # you link in PAM
              33 locate_library /lib/libdl.so && echo "-ldl";
              34
              35 # Look for libsocket. Solaris needs this.
              36 locate_library /lib/libsocket.so && echo "-lsocket";
              37
              38 # Look for libnsl. Solaris needs this.
              39 locate_library /lib/libnsl.so && echo "-lnsl";
              40
              41 # Look for libresolv. Solaris needs this.
              42 locate_library /lib/libresolv.so && echo "-lresolv";
              43
              44 # Look for libutil. Older FreeBSD need this for setproctitle().
              45 locate_library /usr/lib/libutil.so && echo "-lutil";
              46
              47 # For older HP-UX...
              48 locate_library /usr/lib/libsec.sl && echo "-lsec";
              49
              50 # Look for libcap (capabilities)
              51 #if locate_library /lib/libcap.so.1; then
              52 # echo "/lib/libcap.so.1";
              53 #elif locate_library /lib/libcap.so.2; then
              54 # echo "/lib/libcap.so.2";
              55 #else
              56 # #locate_library /usr/lib/libcap.so && echo "-lcap";
              57 #echo "-lcap" ;
              58 # locate_library /lib/libcap.so && echo "-lcap";
              59 # locate_library /lib64/libcap.so && echo "-lcap";
              60 #fi
              61
              62 # Solaris needs this for nanosleep()..
              63 locate_library /lib/libposix4.so && echo "-lposix4";
              64 locate_library /usr/lib/libposix4.so && echo "-lposix4";
              65
              66 # Tru64 (nanosleep)
              67 locate_library /usr/shlib/librt.so && echo "-lrt";
              68
              69 # Solaris sendfile
              70 locate_library /usr/lib/libsendfile.so && echo "-lsendfile";
              71
              72 # OpenSSL
              73 if find_func SSL_library_init ssl.o; then
              74 echo "-lssl -lcrypto";
              75 fi
              76
              77 exit 0;
              78
              [root@cnserver0 wk_vsftpd-




              [root@cnserver0 wk_vsftpd-3.0.2]# sdiff -s Makefile Makefile.org
              CFLAGS = -march=x86-64 -mtune=atom -O2 -fPIE -fstack-pro | CFLAGS = -O2 -fPIE -fstack-protector --param=ssp-buffe
              [root@cnserver0 wk_vsftpd-3.0.2]#
              category:- | by:ittoocomments(0)trackbacks(0) | -

              ad
              Calender
              1234567
              891011121314
              15161718192021
              22232425262728
              293031    
              << March 2015 >>
              Selected entry
              PR
              Category
              Archives
              Recommend
              Link
              Profile
              Search
              Others
              Mobile
              qrcode
              Powered
              無料ブログ作成サービス JUGEM