1531-DBC 422 02 Uen B3 2013-12-02
84
I
NSTALLATION
actions, they will not be described here. Please refer to the documenta-
tion for the used Linux distribution.
There are two ways that the FTP server can be used either as a stand
alone server or as a part of a super server. To keep this section brief
there is only a description of how to set up the FTP server as a part of
the
xinetd
super server.
7.47.3.1 Pure-ftpd
This FTP server is set up by use the command line option. Open the file
/etc/xinetd.conf in an editor and add the following:
service ftp { socket_type = stream protocol = tcp wait = no user = root
server = /usr/sbin/pure-ftpd server-args = -A -E -H -i -u 500 -c 1000}
The explanation of the arguments can be found in the documentation for
the FTP server.
As an alternative this can be set in the file /etc/xinetd.d/pure-ftpd instead.
Restart the super server with the command:
ftp-server: # killall -USR2 xinetd
7.47.3.2 vsftpd
This FTP server is set up by using a configuration file. The options listed
below are a subset of all available options.
Open the file /etc/vsftpd.conf and edit the following options:
write_enable=YES ls_recurse_enable=YES local_enable=YES
chroot_local_user=YES anonymous_enable=NO
connect_from_port_20=YES pam_service_name=vsftpd
All the remaining settings can be disabled by creating a comment (#
character).
Then open the file /etc/xinetd.conf in an editor and add:
service ftp { socket_type = stream protocol = tcp wait = no user = root
server = /usr/sbin/vsftpd log_on_f= USERID }
As an alternative this can be put in the file /etc/xinetd.d/vsftpd instead.
Restart the super server with the command:
ftp-server: # killall -USR2 xinetd
7.47.4
Secure FTP (SFTP)
The user name and password to log on to the SFTP (or FTP) server is
set in the configuration file of the telephone. The default user name is
Telephone.