Linux case study, Debian, Mikrotik, Networking, Routing, Science and the supporting

< Browse > Home / Linux / Blog Article: Install vsftpd as FTP server

| Mobile | RSS

Install vsftpd as FTP server

May 5th, 2009 | 1 How | Posted in Linux

1. Install paket vsftpd

# apt-get install vsftpd

2. Buka file konfigurasinya

# vim /etc/vsftpd.conf

3. Here are the contents of my configuration files have :D

listen=YES
anonymous_enable=YES
local_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
secure_chroot_dir = / var / run / vsftpd
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/vsftpd.pem
user_config_dir = / etc / vsftpd_user
anon_root=/home/ftp

4. Create the file / etc / vsftpd.chroot_list

# vim /etc/vsftpd.chroot_list

then, write the file in the given user access to uploaded data (contoh user = uploader)
misal :

uploader

5. Untuk banner, silahkan create file /etc/vsftpd.banner dan isi sesuai kengininan.

# vim /etc/vsftpd.banner

6. Create a directory / etc / vsftpd_user/

# mkdir /etc/vsftpd_user/

7. Make a configuration file to upload user data workers (contoh user = uploader)

# Vim / etc / vsftpd_user / upload

the contents :

listen=YES
anonymous_enable=YES
local_enable=YES
local_umask=022
anon_upload_enable = NO
anon_mkdir_write_enable = NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=ftp
xferlog_file = / var / log / vsftpd.log
xferlog_std_format=YES
idle_session_timeout=600
data_connection_timeout=120
nopriv_user=ftp
banner_file=/etc/vsftpd.banner
dirmessage_enable=YES
message_file=welcome.msg
deny_email_enable=YES
banned_email_file=/etc/vsftpd.banned_emails
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
ls_recurse_enable=YES
tcp_wrappers=YES
user_config_dir = / etc / vsftpd_user
write_enable=YES
max_clients=50
max_per_ip=5

8. Create a user uploads fortune, eg I create a user uploader

# Adduser upload

and answered questions posed.

9. Fox home directory with the user edit the file / etc / passwd

# Vim / etc / passwd

find the line that is written uploader, change the / home / uploader to / home / ftp
misal :

uploader:x:1003:1003:,,,:/home/uploader:/ bin / bash

then converted to :

uploader:x:1003:1003:,,,:/home/ftp:/ bin / bash

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Blogosphere News
  • Live
  • MisterWong
  • MySpace
  • Ping.fm
  • Slashdot
  • StumbleUpon
  • Technorati
  • Print
  • email
Leave a Reply 3357 views, 1 so far today |

Related Posts

Follow Discussion

One Response to “Install vsftpd as FTP server”

TrackBack

  1. :: Install vsftpd as FTP server :: May :: 2009  

Leave a Reply




View My Stats