Monday, August 17, 2015

vsftpd normal Configure

Configure vsftpd about User local user directory when ftp
and change connection timeout




11 # Allow anonymous FTP? (Beware - allowed by default if you comment this out).
12 anonymous_enable=NO

14 # Uncomment this to allow local users to log in.
15 local_enable=YES

17 # Uncomment this to enable any form of FTP write command.
18 write_enable=YES

20 # Default umask for local users is 077. You may wish to change this to 022,
21 # if your users expect that (022 is used by most other ftpd's)
22 local_umask=022

33 # Activate directory messages - messages given to remote users when they
34 # go into a certain directory.
35 dirmessage_enable=YES



41 # Make sure PORT transfer connections originate from port 20 (ftp-data).
42 connect_from_port_20=YES 

54 # Switches between logging into vsftpd_log_file and xferlog_file files.
55 # NO writes to vsftpd_log_file, YES to xferlog_file
56 xferlog_std_format=YES

61 # You may change the default value for timing out a data connection.
62 data_connection_timeout=240 #change 120 to 240

80 # ASCII mangling is a horrible feature of the protocol.
81 ascii_upload_enable=YES
82 ascii_download_enable=YES

96 #==========================  local home user directory
97 chroot_local_user=YES      #<-- add new
98 #chroot_list_enable=YES
99 # (default follows)
100 #===============================
101 chroot_list_file=/etc/vsftpd/chroot_list
102 local_root=public_html   #<-- add new or /home/*/www file folder


107 ls_recurse_enable=YES

109 # When "listen" directive is enabled, vsftpd runs in standalone mode and
110 # listens on IPv4 sockets. This directive cannot be used in conjunction
111 # with the listen_ipv6 directive.
112 listen=YES

#add new
use_localtime=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES


#KhonkaenSOFT.com

No comments:

Post a Comment

VirtualHost HTTP redirect to HTTPS

<VirtualHost *:80>     ServerName www.example.com     Redirect / https://www.example.com/ </VirtualHost> <VirtualHos...