Create a virtual user using suseLinux

Source: Internet
Author: User
SuseLinux establishes virtual user environment and software SUSELinuxEnterpriseServer11 (x86_64) vsftpd-2.0.7-4.17.1.x86_64.rpm to modify vsftp configuration file parameters (/etc/vsftpd. conf) anonymous_enableNOlocal_enableYESwww...
Suse Linux build virtual user environment and software SUSE Linux Enterprise Server 11 (x86_64) vsftpd-2.0.7-4.17.1.x86_64.rpm modify vsftp profile parameters (/etc/vsftpd. conf) anonymous_enable = NO local_enable = YES www.2cto.com chroot_list_enable = YES # Convert the user listed in chroot_list to the directory defined in the file defined in user_config_dir, NO: the default directory of the system user is chroot_list_file =/etc/vsftpd/chroot_list # This is the file where the chroot user is stored. we will add the vsftp configuration file parameter (/etc/vsftpd. conf) userlist_enable = YES userlist_deny = NO user_config_dir =/etc/vsftpd_user_conf # home directory of the Virtual User configuration file, when we create a virtual user, create the system user whose directory is guest_enable = YES guest_username = virtual # ing the virtual user. then we need to create and restart the ftp server:/etc/init. d/vsftpd restart modify pam verification (/etc/pam. d/vsftpd. the file name matches (/etc/vsftpd. pam_service_name = vsftpd in conf) comment out all parameters, add the following two lines at the beginning of the verification file auth sufficient/lib64/security/pam_userdb.so db =/etc/vsftpd/vsftpd_login #/vsftpd_login, here there cannot be a suffix account sufficient/lib64/security/pam_userdb.so db =/etc/vsftpd/vsftpd_login # The machine is 64-bit. if it is 32-bit, use lib to replace system user creation (guest_username = virtual ), you can also use the existing system user useradd-d/ftp_server/virtual to create a virtual User vi/etc/vsftpd/logins.txt with the following content: logins.txt (odd behavior username, even behavior password) download admin upanddownadnwrite www.2cto.com compile the virtual user information db_load-T-t hash-f/etc/vsftpd/login.txt/etc/vsftpd/vsftpd_login.db # corresponding to/etc/pam. d/add chroot_list information in vsftpd (virtual user name. if this user is not found, the directory will be located in the directory specified during virtual creation) under vi/etc/vsftpd/chroot_list, the content of chroot_list is added to download admin. user_list information (the content is the same as chroot_list and stored in the/etc/directory, otherwise the defined virtual user cannot log on) www.2cto.com adds the virtual user custom information, the file name is consistent with the virtual user name (user_config_dir =/etc/vsftpd_user_conf. if there is no user in this directory, use/etc/vsftpd. conf default configuration) content of the download file: local_root =/ftp_server/download # specifies the address of the user's home directory. Note that the read and write permissions must be granted to the created directory, chmod o + rw directory name write_enable = YES download_enable = YES anon_world_readable_only = NO anon_upload_enable = YES bytes = YES local_umask = 022 www.2cto.com admin file content: local_root =/ftp_server/admin # specify the home directory address of the user, note that the read/write permission write_enable = YES download_enable = YES anon_world_readable_only = NO anon_upload_enable = YES anon_mkdir_write_enable = YES enabled = YES local_umask = 022

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.