Archive for April 2010


How to Install vsftpd @ Debian 5.0 i686

April 1st, 2010 — 4:57am

Requirement

* GNU C Compiler and other small packages required

debian:~# apt-get install gcc build-essential automake autoconf autoreconf libncurses5-dev g++

Package

debian:~# wget ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.2.2.tar.gz
debian:~# tar -zxvf vsftpd-2.2.2.tar.gz

Installation

debian:~# cd vsftpd-2.2.2/
debian:~/vsftpd-2.2.2# make
debian:~/vsftpd-2.2.2# make install

Configuration

debian:~/vsftpd-2.2.2# useradd nobody
debian:~/vsftpd-2.2.2# mkdir /usr/share/empty/
debian:~/vsftpd-2.2.2# mkdir /var/ftp/
debian:~/vsftpd-2.2.2# cp vsftpd.conf /etc/
debian:~/vsftpd-2.2.2# useradd -d /var/ftp ftp
debian:~/vsftpd-2.2.2# chown root.root /var/ftp
debian:~/vsftpd-2.2.2# chmod og-w /var/ftp
debian:~/vsftpd-2.2.2# nano /etc/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
listen=YES
debian:~/vsftpd-2.2.2# cp vsftpd.conf.5 /usr/local/man/man5
debian:~/vsftpd-2.2.2# cp vsftpd.8 /usr/local/man/man8
debian:~/vsftpd-2.2.2# cp vsftpd /usr/local/sbin/vsftpd

The Test

debian:~/vsftpd-2.2.2# /usr/local/sbin/vsftpd &
debian:~/vsftpd-2.2.2# ftp localhost
Connected to localhost.localdomain.
220 (vsFTPd 2.2.2)
Name (localhost:root): ervan
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwx------    9 1004     1005         4096 Mar 30 23:58 Privatedir
drwxr-xr-x   22 1004     1005         4096 Mar 30 23:35 howto.txt
-rw-r--r--    1 1004     1005      3410753 Mar 21 02:52 scp20100309
226 Directory send OK.
ftp>

Comment » | Linux

Back to top