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:
The configuration of the vsftpd FTP service (read as daemon ) simply requires three steps.
Type apt-get command to install vsftpd
$ sudo apt-get install vsftpd
Output:
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>
|
Below is a list of boolean options. The value for a boolean option may be set to YES or NO.
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”.
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.
[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]#
[root@www ~]#
yum -y install vsftpd
Loading “installonlyn” plugin
Loading “fastestmirror” plugin
Setting up Install Process
Setting up repositories
base