

| vsftpdのインストール |
| 4c4 < #define VSF_BUILD_TCPWRAPPERS --- > #undef VSF_BUILD_TCPWRAPPERS |
| sysutil.c:83: error: field
`u_sockaddr_in6' has incomplete type sysutil.c: In function `vsf_sysutil_get_ipv6_sock': sysutil.c:1534: error: `PF_INET6' undeclared (first use in this function) sysutil.c:1534: error: (Each undeclared identifier is reported only once sysutil.c:1534: error: for each function it appears in.) sysutil.c: In function `vsf_sysutil_bind': sysutil.c:1566: error: `AF_INET6' undeclared (first use in this function) sysutil.c:1568: error: invalid application of `sizeof' to an incomplete type sysutil.c: In function `vsf_sysutil_accept_timeout': sysutil.c:1632: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_connect_timeout': sysutil.c:1665: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_getsockname': sysutil.c:1727: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_getpeername': sysutil.c:1752: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_sockaddr_alloc_ipv6': sysutil.c:1803: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_sockaddr_clone': sysutil.c:1820: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_sockaddr_addr_equal': sysutil.c:1841: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_sockaddr_is_ipv6': sysutil.c:1887: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_sockaddr_set_ipv6addr': sysutil.c:1924: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_sockaddr_ipv6_v4': sysutil.c:1940: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_sockaddr_get_raw_addr': sysutil.c:1959: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_get_ipsock': sysutil.c:1990: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_sockaddr_set_any': sysutil.c:2009: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_sockaddr_set_port': sysutil.c:2028: error: `AF_INET6' undeclared (first use in this function) sysutil.c: In function `vsf_sysutil_inet_ntop': sysutil.c:2056: error: `AF_INET6' undeclared (first use in this function) sysutil.c:2059: warning: implicit declaration of function `inet_ntop' sysutil.c:2061: warning: initialization makes pointer from integer without a cast sysutil.c: In function `vsf_sysutil_inet_aton': sysutil.c:2090: warning: implicit declaration of function `inet_aton' make: *** [sysutil.o] Error 1 |
| FAQのファイルを見るとそう書いてました。 Q) Help! vsftpd doesn't build, it complains about problems with incomplete types in sysutil.c. A) Your system probably doesn't have IPv6 support. Either use a more modern system, use an older vsftpd (e.g. v1.1.3), or wait for a version of vsftpd without this problem! |
| drwxr-xr-x 2 root
other 512 Jun 20 20:23
/usr/local/var/ftp/ |
| 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 -D -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \ install -D -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \ elif [ -x /usr/share/man ]; then \ install -D -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \ install -D -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \ else \ install -D -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \ install -D -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 |
| listen=YES |
| *.ftp *.* 0 0 0 0 LISTEN |
| root 23360 22955 0 09:02:42 pts/0
0:00 grep ftp root 23356 22955 1 09:02:35 pts/0 0:00 /usr/local/sbin/vsftpd |
| Connected to localhost. 220 (vsFTPd 1.1.3) Name (localhost:root): ftp 331 Please specify the password. Password: 230 Login successful. Have fun. ftp> |
| #ftp stream tcp nowait
root /usr/sbin/in.ftpd in.ftpd ftp stream tcp nowait root /usr/local/sbin/tcpd /usr/local/sbin/vsftpd |
| vsftpd:all:allow |
| anonymous_enable=YES local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_file=/usr/local/var/log/vsftpd.log idle_session_timeout=600 data_connection_timeout=120 nopriv_user=vsftpd ftpd_banner="" chroot_list_enable=YES chroot_list_file=/etc/vsftpd.chroot_list secure_chroot_dir=/usr/local/var/empty |
| Connected to localhost. 500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir' ftp> |
| 10c10 < #local_enable=YES --- > local_enable=YES 13c13 < #write_enable=YES --- > write_enable=YES 17c17 < #local_umask=022 --- > local_umask=022 46c46 < #xferlog_file=/var/log/vsftpd.log --- > xferlog_file=/usr/local/var/log/vsftpd.log 52c52 < #idle_session_timeout=600 --- > idle_session_timeout=600 55c55 < #data_connection_timeout=120 --- > data_connection_timeout=120 59c59 < #nopriv_user=ftpsecure --- > nopriv_user=vsftpd 80c80 < #ftpd_banner=Welcome to blah FTP service. --- > ftpd_banner="" 91c91 < #chroot_list_enable=YES --- > chroot_list_enable=YES 93c93,94 < #chroot_list_file=/etc/vsftpd.chroot_list --- > chroot_list_file=/etc/vsftpd.chroot_list > secure_chroot_dir=/usr/local/var/empty |