* FTP SERVER *

Build FTP server to transfer files. Install and configure vsftpd for it.

[1] Install vsftpd
www:~#
aptitude -y install vsftpd

Reading package lists… Done
Building dependency tree… Done
Reading extended state information
Initializing package states… Done
Reading task descriptions… Done
Building tag database… Done
The following NEW packages will be installed:
vsftpd
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 114kB of archives. After unpacking 418kB will be used.
Writing extended state information… Done
Get:1 http://ftp.jp.debian.org etch/main vsftpd 2.0.5-2 [114kB]
Fetched 114kB in 0s (149kB/s)
Selecting previously deselected package vsftpd.
(Reading database … 20870 files and directories currently installed.)
Unpacking vsftpd (from …/vsftpd_2.0.5-2_i386.deb) …
Setting up vsftpd (2.0.5-2) …
Adding system user `ftp’ (UID 105) …
Adding new user `ftp’ (UID 105) with group `nogroup’ …
Not creating home directory `/home/ftp’.
Starting FTP server: vsftpd.

www:~#
vi /etc/vsftpd.conf

anonymous_enable=
NO
// line 23: No anonymous

local_enable=YES
// line 26: make valid

write_enable=YES
// line 29: make valid

ascii_upload_enable=YES
// line 90,91: make valid

ascii_download_enable=YES
(permit ascii mode)

chroot_local_user=YES
// line 105: make valid(enable chroot)

chroot_list_enable=YES
// line 110: make valid(enable chroot list)

chroot_list_file=/etc/vsftpd.chroot_list
// line 112: make valid(chroot list file)

ls_recurse_enable=YES
// line 118: make valid

local_root=public_html
// bottom: specify user’s /

use_localtime=YES
// use local time

www:~#
vi /etc/vsftpd.chroot_list

debian
// add user you permit to move to above

www:~#
/etc/init.d/vsftpd restart

Restarting FTP server: vsftpd.

About muzayyanah

apa adanya " be your self "
This entry was posted in Tugas'na Pak Rokib. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s