[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