LinuxCentOS6.2x64 configure vsftpd Virtual User server

Source: Internet
Author: User
LinuxCentOS6.2x64 vsftpd configuration vsftpd Virtual User server recently configured a simple vsftpd server due to project requirements, combined with online information, sorted out the configuration steps for future reference: www.2cto.com 1. install the components required by vsftpd [root @ localhost... linux CentOS6.2 x64 vsftpd configuration vsftpd Virtual User server recently configured a simple vsftpd server due to project requirements, combined with online information, sorted out the configuration steps for future reference: www.2cto.com 1. components required to install vsftpd [root @ localhost ~] # Yum-y install pam * [root @ localhost ~] # Yum-y install db4 * [root @ localhost ~] # Yum-y install vsftpd * 2. create a virtual user [root @ localhost ~] # Vi/etc/vsftpd/vftpusers.txt add virtual user name and password, odd behavior user name, even behavior password ftpusers 123456 Ftpusers1 123456 www.2cto.com 3. generate virtual user password authentication file [root @ localhost ~] # Db_load-T-t hash-f/etc/vsftpd/vftpusers.txt/etc/vsftpd/vftpusers. db 4. edit the PAM authentication for vsftpd [root @ localhost ~] # Vi/etc/pam. d/vsftpd annotate all the original content and add the following two lines at the end (change lib64 to lib in a 32-bit system ): auth required/lib64/security/pam_userdb.so db =/etc/vsftpd/vftpusersaccount required/lib64/security/pam_userdb.so db =/etc/vsftpd/vftpusers 5. create local ing users and set hosts permission [root @ localhost ~] # Useradd-d/app/syncdata-s/sbin/nologin vftpusers [root @ localhost ~] # Chmod 776/app/syncdata 6. configure vsftpd. conf (set Virtual User configuration items) to upload, download, delete, and create directories [root @ localhost ~] # Vi/etc/vsftpd. confanonymous_enable = NOlocal_enable = YESwrite_enable = YESlocal_umask = 022anon_umask = signature = YESxferlog_enable = YESconnect_from_port_20 = NO # pasv mode, set port mode to YESlisten_port = 2121pasv_min_port = 65000pasv_max_port = 65100chown_uploads = NOxferlog_std_format = YESnopriv_user = vftpusersasync_abor_enable = YESas Users = users = YESchroot_local_user = users = NOlisten = YES guest_enable = YESguest_username = vftpusers # Users = users = YES hide_file =. * 7. disable selinux [root @ localhost ~] # Vi/etc/selinux/config change SELINUX = enforcing to SELINUX = disabled Restart Server 8. test logon [root @ localhost ~] # Service vsftpd restart vsftpd and test logon. 9. create a configuration file for each virtual user [root @ localhost ~] # Mkdir/etc/vsftpd/vftpusers_conf edit the ftpusers file [root @ localhost ~] # Vi/etc/vsftpd/vsftpd_user_conf/ftpusers add anon_other_write_enable = YES # enable the permission to delete ftpusers. To add the option [root @ localhost ~] to the configuration file of vsftpd, create a configuration file with the same name and write the required configuration file. # Vi/etc/vsftpd. add the following line to the conf: user_config_dir =/etc/vsftpd/vsftpd_user_conf # set the user configuration file storage directory www.2cto.com 10. Virtual User advanced settings 1. virtual_use_local_privs parameter when virtual_use_local_privs =, virtual users and local users have the same permissions. when virtual_use_local_privs = NO, virtual users and anonymous users have the same permissions. the default value is NO. When virtual_use_local_privs = YES, write_enable = YES, the virtual user has the write permission (upload, download, delete, rename) when virtual_use_local_privs = NO, write_enable = YES, success = YES anon_upload_enable = YES, A virtual user cannot browse directories, but can only upload files without other permissions. When virtual_use_local_privs = NO, write_enable = YES, anon_world_readable_only = NO anon_upload_enable = NO, the virtual user can only download files. if virtual_use_local_privs = NO, write_enable = YES, when anon_world_readable_only = NO anon_upload_enable = YES, the virtual user can only upload and download files. if virtual_use_local_privs = NO, write_enable = YES, anon_world_readable_only = NO permission = YES, A virtual user can only download files and create folders. if virtual_use_local_privs = NO, write_enable = YES, anon_world_readable_only = NO anon_other_write_enable = YES, the virtual user can only download, delete, and rename files, no other permissions
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.