To configure vsftpd
, edit /etc/passwd
using vipw
and change the ftp user's home directory to the directory where you are going to keep the installation trees for your para-virtualized guests. An example entry for the FTP user would look like the following:
ftp:x:14:50:FTP User:/xen/pub:/sbin/nologin
Verify that vsftpd
is not enabled using the chkconfig --list vsftpd
:
$ chkconfig --list vsftpd
vsftpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Run the chkconfig --levels 345 vsftpd on
to start vsftpd automatically for run levels 3, 4 and 5.
Use the chkconfig --list vsftpd
command to verify the vsftpd
daemon is enabled to start during system boot:
$ chkconfig --list vsftpd
vsftpd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
use the service vsftpd start vsftpd
to start the vsftpd service:
$service vsftpd start vsftpd
Starting vsftpd for vsftpd: [ OK ]