Difference between revisions of "Redhat:FTP basic config"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== Configuration Directives == A complete list of available directives can be found in the man page for vsftpd.conf. They are split into three categories: boolean, numeric a...")
(No difference)

Revision as of 08:56, 12 September 2013

Configuration Directives

A complete list of available directives can be found in the man page for vsftpd.conf. They are split into three categories: boolean, numeric and string.

Main vsFTP config file

The main configuration file is /etc/vsftpd.conf.

anonymous_enable=YES #enabled by default, set to no to prevent anonymous access

local_access=YES #disabled by default, must be disabled to allow anonymous downloads.

chroot_local_user=YES #prevent access to the / directory by limiting users to home directories

write_enable=YES # allow  users to write files

local_umask=022 #permissions for new files

anon_upload_enable=YES # allow anonymous uploads, requires a directory with correct permissions and context 

anon_mkdir_write=YES # allow anonymous users to create directories 

chown_uploads=YES #Set the user on new files
chown_username=whoever #User who owns files - SHOULD NOT BE ROOT

ftpd_banner=Welcome to blah #message displayed on logging in

dirmessage_enable=YES # looks for a .messgae file and sends it to the client

xferlog_enable=YES #logging of both uploads and downloads
xferlog_file #chnage to logs from /var/log/vsftpd.log
xferlog_std_format=YES #logs will contin the date, time, IP, user and more

connect_from_port_20=YES #Some FTPs require communication using port 20

idle_session_timeout=600 #logs users out after a period of inactivity