proftpd.conf

creaty

Verified User
Joined
Feb 20, 2005
Messages
18
Hello

Having deleted my proftpd.conf file I need to have a copy!

Can you copy your proftpd.conf below?

thank you
 
/usr/local/directadmin/scripts/proftpd.sh

or

cd /usr/local/directadmin/custombuild
./build update
./build clean
./build set proftpd yes
./build proftpd d
 
I believe I'm correct in writing that neither copying someone else's file nor reinstalling proftpd will restore the data on which users are allowed shell access. You may be able to do that by resetting them from DirectAdmin (untested by me), but you may need to install them manually from a root shell.

Jeff
 
@scsi,



/usr/local/directadmin/scripts/proftpd.sh

or

cd /usr/local/directadmin/custombuild
./build update
./build clean
./build set proftpd yes
./build proftpd d

Did you manage to restore the config with suggested by you methods? I've scanned both files, and hardly could find information on where from does the config gets created.

More to say, with /usr/local/directadmin/scripts/proftpd.sh we get ProFTPD installed from rpm without proftpd.conf (?):

Code:
rpm2cpio proftpd-1.3.3c-1.i386.rpm  | cpio -idmv
./etc/logrotate.d/proftpd
./etc/pam.d/ftp
./home/ftp
./usr/bin/ftpcount
./usr/bin/ftpdctl
./usr/bin/ftptop
./usr/bin/ftpwho
./usr/bin/prxs
./usr/lib/pkgconfig/proftpd.pc
./usr/sbin/ftpscrub
./usr/sbin/ftpshut
./usr/sbin/in.proftpd
./usr/sbin/proftpd
./usr/share/doc/COPYING
./usr/share/doc/CREDITS
./usr/share/doc/ChangeLog
./usr/share/doc/NEWS
./usr/share/doc/proftpd-1.3.3c
./usr/share/doc/proftpd-1.3.3c/COPYING
./usr/share/doc/proftpd-1.3.3c/CREDITS
./usr/share/doc/proftpd-1.3.3c/ChangeLog
./usr/share/doc/proftpd-1.3.3c/Configuration.html
./usr/share/doc/proftpd-1.3.3c/Configuration.pdf
./usr/share/doc/proftpd-1.3.3c/Configuration.sgml
./usr/share/doc/proftpd-1.3.3c/NEWS
./usr/share/doc/proftpd-1.3.3c/README
./usr/share/doc/proftpd-1.3.3c/README.AIX
./usr/share/doc/proftpd-1.3.3c/README.DSO
./usr/share/doc/proftpd-1.3.3c/README.FreeBSD
./usr/share/doc/proftpd-1.3.3c/README.IPv6
./usr/share/doc/proftpd-1.3.3c/README.LDAP
./usr/share/doc/proftpd-1.3.3c/README.PAM
./usr/share/doc/proftpd-1.3.3c/README.Solaris2.5x
./usr/share/doc/proftpd-1.3.3c/README.Unixware
./usr/share/doc/proftpd-1.3.3c/README.capabilities
./usr/share/doc/proftpd-1.3.3c/README.classes
./usr/share/doc/proftpd-1.3.3c/README.controls
./usr/share/doc/proftpd-1.3.3c/README.cygwin
./usr/share/doc/proftpd-1.3.3c/README.facl
./usr/share/doc/proftpd-1.3.3c/README.modules
./usr/share/doc/proftpd-1.3.3c/README.ports
./usr/share/doc/proftpd-1.3.3c/README.ratio
./usr/share/doc/proftpd-1.3.3c/contrib
./usr/share/doc/proftpd-1.3.3c/contrib/ftpasswd.html
./usr/share/doc/proftpd-1.3.3c/contrib/ftpmail.html
./usr/share/doc/proftpd-1.3.3c/contrib/ftpquota.html
./usr/share/doc/proftpd-1.3.3c/contrib/index.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_ban.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_ctrls_admin.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_dynmasq.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_exec.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_ifsession.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_ldap.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_load.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_quotatab.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_quotatab_file.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_quotatab_ldap.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_quotatab_radius.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_quotatab_sql.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_radius.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_rewrite.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_sftp.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_sftp_pam.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_sftp_sql.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_shaper.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_site_misc.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_sql.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_sql_odbc.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_sql_passwd.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_sql_sqlite.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_tls.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_tls_shmcache.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_unique_id.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_wrap.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_wrap2.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_wrap2_file.html
./usr/share/doc/proftpd-1.3.3c/contrib/mod_wrap2_sql.html
./usr/share/doc/proftpd-1.3.3c/faq.html
./usr/share/doc/proftpd-1.3.3c/howto
./usr/share/doc/proftpd-1.3.3c/howto/ASCII.html
./usr/share/doc/proftpd-1.3.3c/howto/AuthFiles.html
./usr/share/doc/proftpd-1.3.3c/howto/Authentication.html
./usr/share/doc/proftpd-1.3.3c/howto/BCP.html
./usr/share/doc/proftpd-1.3.3c/howto/Chroot.html
./usr/share/doc/proftpd-1.3.3c/howto/Classes.html
./usr/share/doc/proftpd-1.3.3c/howto/Compiling.html
./usr/share/doc/proftpd-1.3.3c/howto/ConfigFile.html
./usr/share/doc/proftpd-1.3.3c/howto/ConfigurationTricks.html
./usr/share/doc/proftpd-1.3.3c/howto/Controls.html
./usr/share/doc/proftpd-1.3.3c/howto/CreateHome.html
./usr/share/doc/proftpd-1.3.3c/howto/DNS.html
./usr/share/doc/proftpd-1.3.3c/howto/DSO.html
./usr/share/doc/proftpd-1.3.3c/howto/Debugging.html
./usr/share/doc/proftpd-1.3.3c/howto/Directory.html
./usr/share/doc/proftpd-1.3.3c/howto/DisplayFiles.html
./usr/share/doc/proftpd-1.3.3c/howto/FTP.html
./usr/share/doc/proftpd-1.3.3c/howto/FXP.html
./usr/share/doc/proftpd-1.3.3c/howto/Filters.html
./usr/share/doc/proftpd-1.3.3c/howto/Globbing.html
./usr/share/doc/proftpd-1.3.3c/howto/Limit.html
./usr/share/doc/proftpd-1.3.3c/howto/ListOptions.html
./usr/share/doc/proftpd-1.3.3c/howto/Logging.html
./usr/share/doc/proftpd-1.3.3c/howto/NAT.html
./usr/share/doc/proftpd-1.3.3c/howto/Nonroot.html
./usr/share/doc/proftpd-1.3.3c/howto/Quotas.html
./usr/share/doc/proftpd-1.3.3c/howto/Regex.html
./usr/share/doc/proftpd-1.3.3c/howto/Rewrite.html
./usr/share/doc/proftpd-1.3.3c/howto/SQL.html
./usr/share/doc/proftpd-1.3.3c/howto/SSH.html
./usr/share/doc/proftpd-1.3.3c/howto/Scoreboard.html
./usr/share/doc/proftpd-1.3.3c/howto/Sendfile.html
./usr/share/doc/proftpd-1.3.3c/howto/ServerType.html
./usr/share/doc/proftpd-1.3.3c/howto/Stopping.html
./usr/share/doc/proftpd-1.3.3c/howto/TLS.html
./usr/share/doc/proftpd-1.3.3c/howto/Testing.html
./usr/share/doc/proftpd-1.3.3c/howto/Timestamps.html
./usr/share/doc/proftpd-1.3.3c/howto/Tracing.html
./usr/share/doc/proftpd-1.3.3c/howto/Translations.html
./usr/share/doc/proftpd-1.3.3c/howto/Umask.html
./usr/share/doc/proftpd-1.3.3c/howto/Upgrade.html
./usr/share/doc/proftpd-1.3.3c/howto/Versioning.html
./usr/share/doc/proftpd-1.3.3c/howto/Vhost.html
./usr/share/doc/proftpd-1.3.3c/howto/VirtualUsers.html
./usr/share/doc/proftpd-1.3.3c/howto/index.html
./usr/share/doc/proftpd-1.3.3c/license.txt
./usr/share/doc/proftpd-1.3.3c/mod_sample.c
./usr/share/doc/proftpd-1.3.3c/modules
./usr/share/doc/proftpd-1.3.3c/modules/mod_auth_file.html
./usr/share/doc/proftpd-1.3.3c/modules/mod_auth_pam.html
./usr/share/doc/proftpd-1.3.3c/modules/mod_cap.html
./usr/share/doc/proftpd-1.3.3c/modules/mod_ctrls.html
./usr/share/doc/proftpd-1.3.3c/modules/mod_delay.html
./usr/share/doc/proftpd-1.3.3c/modules/mod_dso.html
./usr/share/doc/proftpd-1.3.3c/modules/mod_facl.html
./usr/share/doc/proftpd-1.3.3c/modules/mod_facts.html
./usr/share/doc/proftpd-1.3.3c/modules/mod_ident.html
./usr/share/doc/proftpd-1.3.3c/modules/mod_lang.html
./usr/share/doc/proftpd-1.3.3c/rfc
./usr/share/doc/proftpd-1.3.3c/rfc/draft-bonachea-sftp-00.txt
./usr/share/doc/proftpd-1.3.3c/rfc/draft-ietf-ftpext-sec-consider-02.txt
./usr/share/doc/proftpd-1.3.3c/rfc/draft-somers-ftp-mfxx-03.txt
./usr/share/doc/proftpd-1.3.3c/rfc/rfc0959.txt
./usr/share/doc/proftpd-1.3.3c/rfc/rfc2228.txt
./usr/share/doc/proftpd-1.3.3c/rfc/rfc2389.txt
./usr/share/doc/proftpd-1.3.3c/rfc/rfc2428.txt
./usr/share/doc/proftpd-1.3.3c/rfc/rfc2640.txt
./usr/share/doc/proftpd-1.3.3c/rfc/rfc3659.txt
./usr/share/doc/proftpd-1.3.3c/rfc/rfc4217.txt
./usr/share/doc/proftpd-1.3.3c/sample-configurations
./usr/share/doc/proftpd-1.3.3c/sample-configurations/PFTEST.conf.in
./usr/share/doc/proftpd-1.3.3c/sample-configurations/PFTEST.group
./usr/share/doc/proftpd-1.3.3c/sample-configurations/PFTEST.install
./usr/share/doc/proftpd-1.3.3c/sample-configurations/PFTEST.passwd
./usr/share/doc/proftpd-1.3.3c/sample-configurations/PFTEST.shadow
./usr/share/doc/proftpd-1.3.3c/sample-configurations/anonymous.conf
./usr/share/doc/proftpd-1.3.3c/sample-configurations/basic.conf
./usr/share/doc/proftpd-1.3.3c/sample-configurations/complex-virtual.conf
./usr/share/doc/proftpd-1.3.3c/sample-configurations/mod_sql.conf
./usr/share/doc/proftpd-1.3.3c/sample-configurations/virtual.conf
./usr/share/doc/proftpd-1.3.3c/xferstats.holger-preiss
./usr/share/man/man1/ftpcount.1.gz
./usr/share/man/man1/ftptop.1.gz
./usr/share/man/man1/ftpwho.1.gz
./usr/share/man/man5/xferlog.5.gz
./usr/share/man/man8/ftpdctl.8.gz
./usr/share/man/man8/ftpscrub.8.gz
./usr/share/man/man8/ftpshut.8.gz
./usr/share/man/man8/proftpd.8.gz
./var/run/proftpd
13676 blocks

and

Code:
# grep proftpd.conf /usr/local/directadmin/custombuild/build
PROFTPD_CONFIGURE=configure/proftpd/configure.proftpd
if [ -e custom/proftpd/configure.proftpd ]; then
        PROFTPD_CONFIGURE=custom/proftpd/configure.proftpd
        rm -f /etc/proftpd.conf.old
        cp /etc/proftpd.conf /etc/proftpd.conf.old
                if [ "${PROFTPD_CONFIGURE}" = "configure/proftpd/configure.proftpd" ]; then
        rm -f /usr/local/etc/proftpd.conf
        ln -sf /etc/proftpd.conf /usr/local/etc/proftpd.conf
        perl -pi -e 's/DisplayFirstChdir/DisplayChdir/' /etc/proftpd.conf
 
Back
Top