How do I set up the vsftpd daemon to accept connections from another computer?

The configuration of the vsftpd FTP service (read as daemon ) simply requires three steps.

Step # 1: Install vsftpd

Type apt-get command to install vsftpd
$ sudo apt-get install vsftpd
Output:

Đọc tiếp »

vsftpd Configuration Options

Although vsftpd may not offer the level of customization other widely available FTP servers have, it offers enough options to fill most administrator’s needs. The fact that it is not overly feature-laden limits configuration and programmatic errors.

All configuration of vsftpd is handled by its configuration file, /etc/vsftpd/vsftpd.conf. Each directive is on its own line within the file and follows the following format:

<directive>=<value>

Đọc tiếp »

VSFTPD.CONF

Below is a list of boolean options. The value for a boolean option may be set to YES or NO.

allow_anon_ssl
Only applies if ssl_enable is active. If set to YES, anonymous users will be allowed to use secured SSL connections. Default: NO

 

anon_mkdir_write_enable
If set to YES, anonymous users will be permitted to create new directories under certain conditions. For this to work, the option write_enable must be activated, and the anonymous ftp user must have write permission on the parent directory. Default: NO
anon_other_write_enable
Đọc tiếp »

Here is a copy of the official vsftpd FAQ that is included in the vsftpd package:

Q) Can I restrict users to their home directories?
A) Yes. You are probably after the setting:
chroot_local_user=YES

Q) Why don’t symlinks work with chroot_local_user=YES?
A) This is a consequence of how chroot() security works. As alternatives,
look into hard links, or if you have a modern Linux, see the powerful
“mount –bind”.

Đọc tiếp »

500 OOPS: could not open chroot() list file:/etc/vsftpd/chroot_list

 Error 1:

@localhost ~]$ ftp 192.168.0.3
Connected to 192.168.0.3 (192.168.0.3).
220 Welcome to Cu Ti FTP service.
Name (192.168.0.3:hungdiem): hungdiem
331 Please specify the password.
Password:
500 OOPS: could not open chroot() list file:/etc/vsftpd/chroot_list
Login failed.

Đọc tiếp »

Install and Configure VSFTPD

[root@bigboy tmp]# service vsftpd start
[root@bigboy tmp]# service vsftpd stop
[root@bigboy tmp]# service vsftpd restart

To configure VSFTPD to start at boot, use the chkconfig command:
[root@bigboy tmp]# chkconfig vsftpd on

TESTING THE STATUS OF VSFTPD [root@bigboy root]# netstat -a | grep ftp
tcp 0 0 *:ftp *:* LISTEN
[root@bigboy root]#

  Đọc tiếp »

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

[root@www ~]#

yum -y install vsftpd

Loading “installonlyn” plugin
Loading “fastestmirror” plugin
Setting up Install Process
Setting up repositories
base

Đọc tiếp »