FreeBSD测试服务器pure-ftpd Ports安装备忘录

┌───────────────────────────────────────────
│                  Options for pure-ftpd 1.0.21_1                                             
│ ┌─────────────────────────────────────────
│ │[ ] LDAP           Support for users in LDAP directories                    
│ │[X] MYSQL          Support for users in MySQL database               
│ │[X] PAM            Support for PAM authentication                             
│ │[ ] PGSQL          Support for users in PostgreSQL database         
│ │[ ] PRIVSEP        Enable privilege separation                                  
│ │[ ] PERUSERLIMITS  Per-user concurrency limits                      
│ │[ ] THROTTLING     Bandwidth throttling                                      
│ │[X] BANNER         Show pure-ftpd welcome upon session start    
│ │[ ] UPLOADSCRIPT   Support uploadscript daemon                      
│ │[X] UTF8           Support for charset conversion (expreimental)   
│ │[X] SENDFILE       Support for the sendfile syscall                         
│ │                                                                                                                 
│ │                                                                                                                  
│ │                                                                                                                 
│ │                                                                                                                  
└───────────────────────────────────────────
                                          [  OK  ]       Cancel                
test# make install
===>  Installing for pure-ftpd-1.0.21_1
===>   pure-ftpd-1.0.21_1 depends on file: /usr/local/bin/perl5.8.8 - found
===>   pure-ftpd-1.0.21_1 depends on shared library: iconv.3 - found
===>   pure-ftpd-1.0.21_1 depends on shared library: mysqlclient.15 - found
===>   Generating temporary packing list
===>  Checking if ftp/pure-ftpd already installed
Making install in puredb
Making install in src
Making install in src
test -z “/usr/local/bin” || /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/install-sh -d “/usr/local/bin”
  install  -s -o root -g wheel -m 555 ‘pure-statsdecode’ ‘/usr/local/bin/pure-statsdecode’
  install  -s -o root -g wheel -m 555 ‘pure-pw’ ‘/usr/local/bin/pure-pw’
  install  -s -o root -g wheel -m 555 ‘pure-pwconvert’ ‘/usr/local/bin/pure-pwconvert’
test -z “/usr/local/sbin” || /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/install-sh -d “/usr/local/sbin”
  install  -s -o root -g wheel -m 555 ‘pure-ftpd’ ‘/usr/local/sbin/pure-ftpd’
  install  -s -o root -g wheel -m 555 ‘pure-mrtginfo’ ‘/usr/local/sbin/pure-mrtginfo’
  install  -s -o root -g wheel -m 555 ‘pure-ftpwho’ ‘/usr/local/sbin/pure-ftpwho’
  install  -s -o root -g wheel -m 555 ‘pure-uploadscript’ ‘/usr/local/sbin/pure-uploadscript’
  install  -s -o root -g wheel -m 555 ‘pure-quotacheck’ ‘/usr/local/sbin/pure-quotacheck’
  install  -s -o root -g wheel -m 555 ‘pure-authd’ ‘/usr/local/sbin/pure-authd’
Making install in contrib
Making install in man
test -z “/usr/local/man/man8″ || /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/install-sh -d “/usr/local/man/man8″
 install  -o root -g wheel -m 444 ‘./pure-ftpd.8′ ‘/usr/local/man/man8/pure-ftpd.8′
 install  -o root -g wheel -m 444 ‘./pure-ftpwho.8′ ‘/usr/local/man/man8/pure-ftpwho.8′
 install  -o root -g wheel -m 444 ‘./pure-mrtginfo.8′ ‘/usr/local/man/man8/pure-mrtginfo.8′
 install  -o root -g wheel -m 444 ‘./pure-uploadscript.8′ ‘/usr/local/man/man8/pure-uploadscript.8′
 install  -o root -g wheel -m 444 ‘./pure-statsdecode.8′ ‘/usr/local/man/man8/pure-statsdecode.8′
 install  -o root -g wheel -m 444 ‘./pure-quotacheck.8′ ‘/usr/local/man/man8/pure-quotacheck.8′
 install  -o root -g wheel -m 444 ‘./pure-pw.8′ ‘/usr/local/man/man8/pure-pw.8′
 install  -o root -g wheel -m 444 ‘./pure-pwconvert.8′ ‘/usr/local/man/man8/pure-pwconvert.8′
 install  -o root -g wheel -m 444 ‘./pure-authd.8′ ‘/usr/local/man/man8/pure-authd.8′
Making install in pam
Making install in gui
Making install in configuration-file
Making install in m4
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/pureftpd-ldap.conf /usr/local/etc/pureftpd-ldap.conf.sample
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/pureftpd-mysql.conf /usr/local/etc/pureftpd-mysql.conf.sample
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/pureftpd-pgsql.conf /usr/local/etc/pureftpd-pgsql.conf.sample
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/configuration-file/pure-ftpd.conf /usr/local/etc/pure-ftpd.conf.sample
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/configuration-file/pure-config.pl /usr/local/sbin/
cd /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/contrib && install  -o root -g wheel -m 555 xml_python_processors.txt pure-stat.pl pure-vpopauth.pl /usr/local/share/examples/pure-ftpd
/bin/chmod 755 /usr/local/sbin/pure-config.pl
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/AUTHORS /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/CONTACT /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/COPYING /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/HISTORY /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/NEWS /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/README /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/README.Configuration-File /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/README.Contrib /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/README.LDAP /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/README.Netfilter /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/README.MySQL /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/README.PGSQL /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/README.Virtual-Users /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/README.Authentication-Modules /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/THANKS /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/pure-ftpd.png /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/pureftpd.schema /usr/local/share/doc/pure-ftpd
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/work/pure-ftpd-1.0.21/README.TLS /usr/local/share/doc/pure-ftpd
/bin/mkdir -p /usr/local/share/examples/pure-ftpd/pam
install  -o root -g wheel -m 444 /usr/ports/ftp/pure-ftpd/files/pam.conf.5 /usr/local/share/examples/pure-ftpd/pam/pure-ftpd
Now you need to examine /usr/local/share/examples/pure-ftpd/pam/pure-ftpd
and add the relevant PAM configuration lines to your /etc/pam.conf file.

If you defined call upload script in pure-ftpd config
define corresponding vars in rc.conf
Without it pure-ftpd will not listen tcp socket - see
FAQ: http://pureftpd.org/FAQ
===> Installing rc.d startup script(s)
===>   Compressing manual pages for pure-ftpd-1.0.21_1
===>   Registering installation for pure-ftpd-1.0.21_1
===> SECURITY REPORT:
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/sbin/pure-authd
/usr/local/sbin/pure-ftpd

      This port has installed the following startup scripts which may cause
      these network services to be started at boot time.
/usr/local/etc/rc.d/pure-ftpd

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type ‘make deinstall’
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage:
http://www.pureftpd.org/
============================================================
cp /usr/local/etc/pure-ftpd.conf.sample /etc/pure-ftpd.conf

ee /usr/local/etc/rc.d/pure-ftpd

Add pureftpd_enable=”YES” to /etc/rc.conf

/usr/local/etc/rc.d/pure-ftpd start | stop | restart
——————————————————–

pw useradd ftp -d /home/ftp -s /sbin/nologin

# mkdir /home/video
# pw groupadd
# pw useradd video -g ftp -d /home/video -s /bin/sh
# passwd video ******
# chown video /home/video
# chgrp ftp /home/video

分类:FreeBSD Tags:
评论

还没有任何评论。

留下评论