ProFTPd Suddenly Broke -- Need help please.

jim.thornton

Verified User
Joined
Jan 1, 2008
Messages
334
I've been running DA without problems to my ProFTP server for a couple of years now. Unfortunately, recently it will no longer allow users to get a directory listing via their client. It says that the user connects fine and showing the contents of "/" but nothing appears.

I have searched the forums and I noticed that ProFTPd released a new version 1.3.2. When logging in to an FTP account via the client it shows that ProFTPd 1.3.2 is running. However, when I run # yum info proftpd it returns that 1.3.1 is installed.

Can anyone help me fix it please? I have a user that needs to get into their account ASAP.
 
Hello,

on the first you need to upgrade custombuild scripts and data:

./build update
./build update_script


After this you should update proftpd:

./build proftpd

About trouble with directory listing: check if ListOptions present on your proftpd.conf
 
Thank you for that... I have done as you suggested:

# ./build update
# ./build update_script
# ./build proftpd

It is now showing 1.3.2b when logging into ProFTPd. However, it is still not giving a directory listing.

The following line is present in the /etc/proftpd.conf file:
ListOptions -a

Any other suggestions?
 
Test by making sure you've turned off all firewalling. Test by switching to Passive Mode.

Check your proftpd configuration; this knowledgebase article may help.

Make sure you don't have both RPM and compiled versions on your system.

Jeff
 
I just ran the following command:

# rpm -qa proftpd

Here was the result:
proftpd-1.3.1-1

I know that I ran custombuild and updated to proftpd 1.3.2b and that is what it is saying when I go to connect via FTP client.

I tried connecting right after that. Here is what I get:

Code:
Status:	Connecting to 218.51.165.43:21...
Status:	Connection established, waiting for welcome message...
Response:	220 ProFTPD 1.3.2b Server ready.
Command:	USER [email protected]
Response:	331 Password required for [email protected]
Command:	PASS *************
Response:	230 User [email protected] logged in
Command:	SYST
Response:	215 UNIX Type: L8
Command:	FEAT
Response:	211-Features:
Response:	 MDTM
Response:	 MFMT
Response:	 MFF modify;UNIX.group;UNIX.mode;
Response:	 MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
Response:	 REST STREAM
Response:	 SIZE
Response:	211 End
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/" is the current directory
Command:	TYPE I
Response:	200 Type set to I
Command:	PASV
Response:	227 Entering Passive Mode (208,53,145,55,203,117).
Command:	MLSD
Error:	Connection timed out
Error:	Failed to retrieve directory listing

(I have changed username and IP address)

I ran:

# service apf stop

I then was able to connect without a problem (with a directory listing). Any ideas how I can fix my firwall?
 
Hello,

you should check /etc/proftpd.conf for:

PassivePorts 35000 35999

and add this ports pange to your firewall rules.
 
I looked for that file. I guess it was deleted when I ran:

# yum remove proftpd

There is something wierd going on. I removed the rpm version as you said. I tried running:

# service proftpd restart

And I got "Unrecognized service". For some reason it is not showing. However, when I connect with my FTP client it shows that 1.3.2b is running.

I don't know what is going on now.
 
The program is still running memory but it's no longer on your server.

You can kill it:
Code:
# killall -9 proftpd
but then you won't have proftpd unless you reinstall it. I recommend reinstalling it from DirectAdmin, not from yum.

If you're not yet running custombuild, now would be a good time to start.

Jeff
 
I am running custombuild. I'm trying to compile via custombuild by typing: # ./build proftpd but it isn't working. Error:

Done proftpd.
Restarting ProFTPd.
./build: line 6809: /etc/init.d/proftpd: No such file or directory


Any ideas as to why this is not getting installed?
 
I just ran the following command:

Code:
]# ./build proftpd > build.output.log
src/netaddr.o: In function `pr_netaddr_get_addr':
netaddr.c:(.text+0x158a): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
src/netaddr.o: In function `pr_netaddr_get_localaddr_str':
netaddr.c:(.text+0x18d2): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
src/netaddr.o: In function `pr_netaddr_get_dnsstr':
netaddr.c:(.text+0x1b62): warning: Using 'gethostbyname2' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
./build: line 6809: /etc/init.d/proftpd: No such file or directory

Here is the build.output.log:
Code:
File already exists:	proftpd-1.3.2b.tar.gz
MD5 Checksum on proftpd-1.3.2b.tar.gz passed.
File already exists:	proftpd
File already exists:	proftpd_freebsd
File already exists:	proftpd_debian
Found /usr/local/directadmin/custombuild/proftpd-1.3.2b.tar.gz
Extracting /usr/local/directadmin/custombuild/proftpd-1.3.2b.tar.gz...
Configuring proftpd-1.3.2b...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) no
appending configuration tag "F77" to libtool
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether the C compiler accepts -Wall... yes
checking for getopt... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for getopt_long... yes
checking for standalone crypt... no
checking for crypt in -lcrypt... yes
checking for standalone gethostbyname... yes
checking for standalone inet_aton... yes
checking for standalone nsl functions... yes
checking for standalone socket functions... yes
checking for _pw_stayopen variable... no
checking krb.h usability... no
checking krb.h presence... no
checking for krb.h... no
checking login.h usability... no
checking login.h presence... no
checking for login.h... no
checking prot.h usability... no
checking prot.h presence... no
checking for prot.h... no
checking usersec.h usability... no
checking usersec.h presence... no
checking for usersec.h... no
checking hpsecurity.h usability... no
checking hpsecurity.h presence... no
checking for hpsecurity.h... no
checking for hpsecurity.h workaround... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking junistd.h usability... no
checking junistd.h presence... no
checking for junistd.h... no
checking for memory.h... (cached) yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking for struct spwd.sp_warn... yes
checking for struct spwd.sp_inact... yes
checking for struct spwd.sp_expire... yes
checking linux/capability.h usability... yes
checking linux/capability.h presence... yes
checking for linux/capability.h... yes
checking for cap_init in -lcap2... no
checking for cap_init in -lcap... no
checking whether to enable mod_cap... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for inttypes.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking sys/ucred.h usability... no
checking sys/ucred.h presence... no
checking for sys/ucred.h... no
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for sys/param.h... yes
checking for sys/mount.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking whether netdb.h requires _USE_IRS... no
checking for netinet/in_systm.h... yes
checking for netinet/ip.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for sys/stat.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking sys/termio.h usability... no
checking sys/termio.h presence... no
checking for sys/termio.h... no
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking vmsdir.h usability... no
checking vmsdir.h presence... no
checking for vmsdir.h... no
checking ucred.h usability... no
checking ucred.h presence... no
checking for ucred.h... no
checking ucontext.h usability... yes
checking ucontext.h presence... yes
checking for ucontext.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for tzname global variable... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for size_t... yes
checking for mode_t... yes
checking for off_t... yes
checking type of array argument to getgroups... gid_t
checking for timer_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 8
checking for long long... yes
checking size of long long... 8
checking for off_t... (cached) yes
checking size of off_t... 8
checking for size_t... (cached) yes
checking size of size_t... 8
checking for time_t... yes
checking size of time_t... 8
checking for mode_t... (cached) yes
checking for ino_t... yes
checking for intptr_t... yes
checking for socklen_t... yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking whether struct utmp has ut_user... yes
checking whether struct utmp has ut_host... yes
checking whether struct utmp has ut_exit... yes
checking whether syslog.h defines LOG_CRON... yes
checking whether syslog.h defines LOG_FTP... yes
checking for d_fd in DIR structure... no
checking for dd_fd in DIR structure... no
checking for __dd_fd in DIR structure... no
checking for working alloca.h... yes
checking for alloca... yes
checking for alloca in -lucb... no
checking whether gcc needs -traditional... no
checking whether setpgrp takes no argument... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for bcopy... yes
checking for crypt... yes
checking for fdatasync... yes
checking for fgetgrent... yes
checking for fgetpwent... yes
checking for fgetspent... yes
checking for flock... yes
checking for fpathconf... yes
checking for freeaddrinfo... yes
checking for futimes... yes
checking for nl_langinfo... yes
checking for gai_strerror... yes
checking for iconv... no
checking for dirfd... yes
checking for getaddrinfo... yes
checking for getcwd... yes
checking for getenv... yes
checking for getgrouplist... yes
checking for gethostbyname2... yes
checking for gethostname... yes
checking for getnameinfo... yes
checking for gettimeofday... yes
checking for hstrerror... yes
checking for inet_aton... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for loginrestrictions... no
checking for memcpy... yes
checking for mempcpy... yes
checking for mkdir... yes
checking for mkstemp... yes
checking for mlock... yes
checking for mlockall... yes
checking for munlock... yes
checking for munlockall... yes
checking for pathconf... yes
checking for putenv... yes
checking for regcomp... yes
checking for rmdir... yes
checking for select... yes
checking for setgroups... yes
checking for socket... yes
checking for statfs... yes
checking for strchr... yes
checking for strcoll... yes
checking for strerror... yes
checking for strsep... yes
checking for strtol... yes
checking for strtoull... yes
checking for setprotoent... yes
checking for setspent... yes
checking for endprotoent... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for setsid... yes
checking for setgroupent... no
checking for seteuid... yes
checking for setegid... yes
checking for setenv... yes
checking for setpgid... yes
checking for siginterrupt... yes
checking for tzset... yes
checking for unsetenv... yes
checking for setpassent... no
checking for struct cmsgcred.cmcred_uid... no
checking for struct sockcred.sc_uid... no
checking for struct sockaddr_in.sin_len... no
checking whether struct addrinfo is defined... yes
checking whether struct sockaddr_storage is defined... yes
checking whether ss_family is defined... yes
checking whether ss_len is defined... no
checking whether __ss_len is defined... no
checking sys/acl.h usability... no
checking sys/acl.h presence... no
checking for sys/acl.h... no
checking acl/libacl.h usability... no
checking acl/libacl.h presence... no
checking for acl/libacl.h... no
checking which POSIX ACL implementation to use... none
checking which sendfile() implementation to use... Linux
checking sys/sendfile.h usability... yes
checking sys/sendfile.h presence... yes
checking for sys/sendfile.h... yes
checking whether setgrent returns void... yes
checking for initscr in -lcurses... yes
checking for initscr in -lncurses... yes
checking for setproctitle... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking for setproctitle in -lutil... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking whether __progname and __progname_full are available... yes
checking which argv replacement method to use... writeable
checking whether printf supports %llu format... yes
checking checking for duplicate module requests... no
configure: creating ./config.status
config.status: creating include/Makefile
config.status: creating lib/Makefile
config.status: creating locale/Makefile
config.status: creating modules/Makefile
config.status: creating src/Makefile
config.status: creating src/prxs
config.status: creating src/ftpdctl.8
config.status: creating src/proftpd.8
config.status: creating src/xferlog.5
config.status: creating tests/Makefile
config.status: creating utils/Makefile
config.status: creating utils/ftpcount.1
config.status: creating utils/ftpshut.8
config.status: creating utils/ftptop.1
config.status: creating utils/ftpwho.1
config.status: creating Makefile
config.status: creating Make.rules
config.status: creating config.h
config.status: executing default commands
Done. Making proftpd-1.3.2b...
Trying to make ProFTPD...
echo \#define BUILD_STAMP \"`date`\" >include/buildstamp.h
cd lib/ && make lib
cd src/ && make src
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib'
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c pr_fnmatch.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c sstrncpy.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c strsep.c
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/src'
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c main.c
cd modules/ && make static
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/modules'
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_core.c
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib/libcap'
=> making cap_names.c from <linux/capability.h>
gcc -O2 -Wall -L/lib -static  _makenames.c -o _makenames
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c vsnprintf.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c glibc-glob.c
./_makenames > cap_names.h
gcc -O2 -Wall -c cap_alloc.c -o cap_alloc.o
gcc -O2 -Wall -c cap_proc.c -o cap_proc.o
gcc -O2 -Wall -c cap_extint.c -o cap_extint.o
gcc -O2 -Wall -c cap_flag.c -o cap_flag.o
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c glibc-hstrerror.c
gcc -O2 -Wall -c cap_text.c -o cap_text.o
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c glibc-mkstemp.c
gcc -O2 -Wall -c cap_sys.c -o cap_sys.o
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c timers.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c pr-syslog.c
ar rcu libcap.a cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_sys.o
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib/libcap'
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_xfer.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c pwgrent.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c sets.c
ar rc libsupp.a pr_fnmatch.o sstrncpy.o strsep.o vsnprintf.o glibc-glob.o glibc-hstrerror.o glibc-mkstemp.o pr-syslog.o pwgrent.o
ranlib libsupp.a
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib'
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c pool.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_auth_unix.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c str.c
test -z """" || (cd locale/ && make locale)
cd utils/ && make utils
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/utils'
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c ftpcount.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c scoreboard.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c table.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c misc.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c ftpshut.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c regexp.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c ftptop.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_auth_file.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c dirtree.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c ftpwho.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_auth.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c expr.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_ls.c
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/utils'
gcc -L./lib -static  -o ftpcount utils/ftpcount.o utils/scoreboard.o utils/misc.o -lsupp -lcrypt 
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c support.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_log.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c netaddr.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c inet.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c child.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_site.c
gcc -L./lib -static  -o ftpshut utils/ftpshut.o -lsupp -lcrypt 
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c parser.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_delay.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c log.c
gcc -L./lib -static  -o ftptop utils/ftptop.o utils/scoreboard.o utils/misc.o -lncurses -lsupp -lcrypt 
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c lastlog.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_facts.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c xferlog.c
gcc -L./lib -static  -o ftpwho utils/ftpwho.o utils/scoreboard.o utils/misc.o -lsupp -lcrypt 
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_ident.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_ratio.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c bindings.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_readme.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c netacl.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c class.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_tls.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_cap.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c scoreboard.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c help.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c feat.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c netio.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c response.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c data.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c modules.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c display.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c auth.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c fsio.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mkhome.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c ctrls.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c event.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c var.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c throttle.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c trace.c
srcdir=. ./glue.sh mod_core.o mod_xfer.o mod_auth_unix.o mod_auth_file.o mod_auth.o mod_ls.o mod_log.o mod_site.o mod_delay.o mod_facts.o mod_ident.o mod_ratio.o mod_readme.o mod_tls.o mod_cap.o
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c encode.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c module_glue.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c proctitle.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c pidfile.c
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/modules'
test -z """" -a -z """" || (cd modules/ && make shared)
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c env.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c version.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c ftpdctl.c
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/src'
/bin/sh ./libtool --mode=link --tag=CC gcc -L./lib -static   -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/str.o src/table.o src/regexp.o src/dirtree.o src/expr.o src/support.o src/netaddr.o src/inet.o src/child.o src/parser.o src/log.o src/lastlog.o src/xferlog.o src/bindings.o src/netacl.o src/class.o src/scoreboard.o src/help.o src/feat.o src/netio.o src/response.o src/data.o src/modules.o src/display.o src/auth.o src/fsio.o src/mkhome.o src/ctrls.o src/event.o src/var.o src/throttle.o src/trace.o src/encode.o src/proctitle.o src/pidfile.o src/env.o src/version.o modules/mod_core.o modules/mod_xfer.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_facts.o modules/mod_ident.o modules/mod_cap.o modules/mod_tls.o modules/mod_readme.o modules/mod_ratio.o  modules/module_glue.o  -lssl -lcrypto -L./lib/libcap -lcap  -lssl -lcrypto -lsupp -lcrypt  
gcc -L./lib -static  -o ftpdctl src/ftpdctl.o src/pool.o src/str.o src/netaddr.o src/log.o src/ctrls.o -lssl -lcrypto -L./lib/libcap -lcap  -lssl -lcrypto -lsupp -lcrypt 
mkdir .libs
gcc -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/str.o src/table.o src/regexp.o src/dirtree.o src/expr.o src/support.o src/netaddr.o src/inet.o src/child.o src/parser.o src/log.o src/lastlog.o src/xferlog.o src/bindings.o src/netacl.o src/class.o src/scoreboard.o src/help.o src/feat.o src/netio.o src/response.o src/data.o src/modules.o src/display.o src/auth.o src/fsio.o src/mkhome.o src/ctrls.o src/event.o src/var.o src/throttle.o src/trace.o src/encode.o src/proctitle.o src/pidfile.o src/env.o src/version.o modules/mod_core.o modules/mod_xfer.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_facts.o modules/mod_ident.o modules/mod_cap.o modules/mod_tls.o modules/mod_readme.o modules/mod_ratio.o modules/module_glue.o  -L/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib -L/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib/libcap -lcap -lssl -lcrypto -lsupp -lcrypt
Make complete
Installing proftpd-1.3.2b...
cd lib/ && make lib
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib'
cd src/ && make src
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/src'
make[1]: Nothing to be done for `src'.
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/src'
cd modules/ && make static
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/modules'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/modules'
test -z """" -a -z """" || (cd modules/ && make shared)
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib/libcap'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib/libcap'
test -z """" || (cd locale/ && make locale)
/bin/sh ./libtool --mode=link --tag=CC gcc -L./lib -static   -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/str.o src/table.o src/regexp.o src/dirtree.o src/expr.o src/support.o src/netaddr.o src/inet.o src/child.o src/parser.o src/log.o src/lastlog.o src/xferlog.o src/bindings.o src/netacl.o src/class.o src/scoreboard.o src/help.o src/feat.o src/netio.o src/response.o src/data.o src/modules.o src/display.o src/auth.o src/fsio.o src/mkhome.o src/ctrls.o src/event.o src/var.o src/throttle.o src/trace.o src/encode.o src/proctitle.o src/pidfile.o src/env.o src/version.o modules/mod_core.o modules/mod_xfer.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_facts.o modules/mod_ident.o modules/mod_cap.o modules/mod_tls.o modules/mod_readme.o modules/mod_ratio.o  modules/module_glue.o  -lssl -lcrypto -L./lib/libcap -lcap  -lssl -lcrypto -lsupp -lcrypt  
gcc -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/str.o src/table.o src/regexp.o src/dirtree.o src/expr.o src/support.o src/netaddr.o src/inet.o src/child.o src/parser.o src/log.o src/lastlog.o src/xferlog.o src/bindings.o src/netacl.o src/class.o src/scoreboard.o src/help.o src/feat.o src/netio.o src/response.o src/data.o src/modules.o src/display.o src/auth.o src/fsio.o src/mkhome.o src/ctrls.o src/event.o src/var.o src/throttle.o src/trace.o src/encode.o src/proctitle.o src/pidfile.o src/env.o src/version.o modules/mod_core.o modules/mod_xfer.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_facts.o modules/mod_ident.o modules/mod_cap.o modules/mod_tls.o modules/mod_readme.o modules/mod_ratio.o modules/module_glue.o  -L/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib -L/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib/libcap -lcap -lssl -lcrypto -lsupp -lcrypt
cd utils/ && make utils
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/utils'
make[1]: Nothing to be done for `utils'.
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/utils'
/usr/bin/install -c -s -o ftp -g ftp -m 0755 proftpd /usr/sbin/proftpd
if [ -f /usr/sbin/in.proftpd ] ; then \
		rm -f /usr/sbin/in.proftpd ; \
	fi
ln -s proftpd /usr/sbin/in.proftpd
chown -h ftp:ftp /usr/sbin/in.proftpd
test -z """" -a -z """" -a -z """" || (cd modules/ && make install)
/usr/bin/install -c -s -o ftp -g ftp -m 0755  ftpcount /usr/bin/ftpcount
/usr/bin/install -c -s -o ftp -g ftp -m 0755  ftpdctl  /usr/bin/ftpdctl
/usr/bin/install -c -s -o ftp -g ftp -m 0755 ftpshut  /usr/sbin/ftpshut
/usr/bin/install -c -s -o ftp -g ftp -m 0755  ftptop   /usr/bin/ftptop
/usr/bin/install -c -s -o ftp -g ftp -m 0755  ftpwho   /usr/bin/ftpwho
/usr/bin/install -c -o ftp -g ftp -m 0755 src/prxs /usr/bin/prxs
if [ ! -f /etc/proftpd.conf ] ; then \
		/usr/bin/install -c -o ftp -g ftp -m 0644 \
		           ./sample-configurations/basic.conf \
	       	           /etc/proftpd.conf ; \
	fi
/usr/bin/install -c -o ftp -g ftp -m 0644 ./src/ftpdctl.8    /usr/share/man/man8
/usr/bin/install -c -o ftp -g ftp -m 0644 ./src/proftpd.8    /usr/share/man/man8
/usr/bin/install -c -o ftp -g ftp -m 0644 ./utils/ftpshut.8  /usr/share/man/man8
/usr/bin/install -c -o ftp -g ftp -m 0644 ./utils/ftpcount.1 /usr/share/man/man1
/usr/bin/install -c -o ftp -g ftp -m 0644 ./utils/ftptop.1   /usr/share/man/man1
/usr/bin/install -c -o ftp -g ftp -m 0644 ./utils/ftpwho.1   /usr/share/man/man1
/usr/bin/install -c -o ftp -g ftp -m 0644 ./src/xferlog.5    /usr/share/man/man5
cd lib/ && make install
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/lib'
/usr/bin/install -c -o ftp -g ftp -m 0644 config.h /usr/include/proftpd/config.h
cd include/ && make install
make[1]: Entering directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/include'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/proftpd-1.3.2b/include'
/usr/bin/install -c -o ftp -g ftp -m 0644 proftpd.pc /usr/lib/pkgconfig/proftpd.pc
test -z """" || (cd locale/ && make install)
Done proftpd.
Restarting ProFTPd.
 
Okay... I finally got it installed and working. I followed the Knowledgebase article that you pointed me to because the custombuild wasn't working.

Now... Will this reload automatically on reboot or do I need to do something else?
 
If you installed it from DirectAdmin instructions it should restart automatically.

The make install step should take care of that.

You can check your OS Distribution's startup scripts, or actually try a reboot (at a good time) to see.

Jeff
 
In a word, No.

I'd have to log into your server and try it, and see, but I don't do that except as a commercial service :).

Jeff
 
Proftpd 1.3.2b MLSD directory listing empty

Hi! I had a similar problem, and I found a workaround:

switch ftp client Directory Listing mode from MLSD to STAT -l
or disable TLS

It seems, that MLSD directory listing fails when TLS secure connection is used.

But not sure whats causing the problem. I have two similar servers, same proftpd daemon version. One of them is producing the error, but the other is not. I have interchanged the configuration files, but that not helped.
 
Everything seems to be running fine now. I updated the script and then ran proftpd and it seems fine.
 
Back
Top