vsftpd Installation Configuration

vsftpd install a configuration, installation, use yum command to install # yum install vsftpd Second, the global configuration #vi /etc/vsftpd/vsftpd.conf // open the configuration file anonymous_enable = YES // Enable anonymous user local_enable = YES // allow local users Login FTP write_enable = YES // allowed to write, upload local_umask = 022 // set anti-mask of 022 anon_upload_enable = YES // allow anonymous users to upload # anon_mkdir_write_enable = YES // whether to allow anonymous users can use create folders and upload files in addition to other than write ftp command. For example:. Delete, rename, etc. dirmessage_enable = YES // directory message, # Activate logging of uploads / downloads xferlog_enable = YES // Enable uploading and downloading log connect_from_port_20 = YES // 20 port data port chown_uploads = YES // anonymous user to change the owner of the uploaded file chown_username = root // anonymous users to upload files to change the root user # you may override where the log file goes if you like. the default is shown # below. # xferlog_file = / var / log / vsftpd. log // default log file storage path # # If you want, The following parameters were added conf User_config_dir = / path // User B configuration directory file is located, creating a configuration file path in the path, such bj1z document, adding the configuration parameters Bj1z file: local_root = / ftproot / bj1z // user's name bj1z programming the user directory / ftproot / bj1z local_max_rate = 20000 local_umask = 022 Bj2z file: local_root = / ftproot / bj2z // user user directory of the program called bj1z / ftproot / bj2z local_max_rate = 20000 local_umask = 022 Bj3z file: local_root = / ftproot / bj3z // user name of the user directory programming bj1z / ftproot / bj3z local_max_rate = 20000 local_umask = 022 zhbjb file: local_root = / ftproot / zhbjb // user user directory of the program called bj1z / ftproot / zhbjb local_max_rate = 20000 local_umask = 022 four, disk quota settings #vi / etc / fstab / dev / vg1 / lv1 / ftproot ext3 defaults 1 2 read: / dev / vg1 / lv1 / ftproot ext3 defaults, usrquota, grpquota 1 2 #reboot #quotacheck -avug need to wait for some time after the completion / ftproot generate quota.User and quota.Group file #quotaon -avug following // enable disk quotas #edquota -u bj1z Enter the appropriate soft and hard limits, save and exit #edquota bj2z // the disk quota bj1z configuration -p bj1z -u copy to bj2z user #repquota -avug // view usage

Reproduced in: https: //my.oschina.net/766/blog/210997

Guess you like

Origin blog.csdn.net/weixin_34183910/article/details/91493040