RHEL5.5 VSFTP2.0.5 Virtual User Configuration different permissions
Linux under the use of VSFTP to build an FTP server, while establishing a virtual account, for different accounts to assign different permissions, the following configuration test pass.
System version
650) this.width=650; "title=" System Version "src=" Http://s3.51cto.com/wyfs02/M00/71/46/wKioL1XKrsugpe0dAADTQz2vu3Y967.jpg " alt= "Wkiol1xkrsugpe0daadtqz2vu3y967.jpg"/>
Version 2.vsftpd
650) this.width=650; "title=" vsftp version "src=" http://s3.51cto.com/wyfs02/M01/71/4A/ Wkiom1xkrqvyu4vmaaa-vts77rg954.jpg "alt=" Wkiom1xkrqvyu4vmaaa-vts77rg954.jpg "/>
If the VSFTPD service is not installed when the system is installed, it can be installed later through Yum or by using the RPM package, the TAR package for manual installation, the installation process is not explained here, after the installation is complete, check the VSFTPD service status
3. Configuring the Vsftpd.conf File
650) this.width=650; "title=" 3.png "src=" Http://s3.51cto.com/wyfs02/M01/71/46/wKioL1XKr1DReyi1AAA8T5wug-8854.jpg " alt= "Wkiol1xkr1dreyi1aaa8t5wug-8854.jpg"/> Before you modify the backup
650) this.width=650; "title=" 4.png "src=" Http://s3.51cto.com/wyfs02/M00/71/46/wKioL1XKr4HQI34SAAAskYIfugI250.jpg " alt= "Wkiol1xkr4hqi34saaaskyifugi250.jpg"/>
Modify the following configuration file
650) this.width=650; "title=" 5.png "src=" Http://s3.51cto.com/wyfs02/M01/71/4A/wKiom1XKrbSBhwZSAAAS2v-ZUcY286.jpg " alt= "Wkiom1xkrbsbhwzsaaas2v-zucy286.jpg"/> Close Anonymous Login
650) this.width=650; "title=" 6.png "src=" Http://s3.51cto.com/wyfs02/M02/71/46/wKioL1XKr_Cyfi1oAAAlX_9ZB_0425.jpg " alt= "wkiol1xkr_cyfi1oaaalx_9zb_0425.jpg"/> enable ASCII upload and download function
Add the following lines to the last side of the configuration file, meaning to allow the virtual user to log in, the virtual user corresponding to the FTP account, the virtual user login configuration file directory is/etc/vsftpd/users/, this directory is stored under the different user's configuration file
650) this.width=650; "title=" 7.png "src=" Http://s3.51cto.com/wyfs02/M00/71/46/wKioL1XKsC-RISD2AABngrClXZc946.jpg " alt= "Wkiol1xksc-risd2aabngrclxzc946.jpg"/>
The value of Pam_service_name in the first line here needs to be the same as the certificate file name in step sixth, otherwise the authentication is unsuccessful. The last line here is configured with the directory of the virtual user, which needs to be the same as the eighth step;
4. Create a virtual user's account file
650) this.width=650; "title=" 8.png "src=" Http://s3.51cto.com/wyfs02/M00/71/4A/wKiom1XKrlbhomUMAAAymx-DHsI679.jpg " alt= "Wkiom1xkrlbhomumaaaymx-dhsi679.jpg"/>
Add a virtual account in the Vm_user.txt file
650) this.width=650; "title=" 9.png "src=" Http://s3.51cto.com/wyfs02/M01/71/46/wKioL1XKsH3BuhYvAAAS4tZLsCM460.jpg " alt= "Wkiol1xksh3buhyvaaas4tzlscm460.jpg"/> Where the odd behavior of the user name, the even behavior corresponding to the password
5. Use the above file to generate the database file
650) this.width=650; "title=" 1.png "src=" Http://s3.51cto.com/wyfs02/M02/71/46/wKioL1XKsLCAhoTlAABSF68om70238.jpg " alt= "Wkiol1xkslcahotlaabsf68om70238.jpg"/>
Generate vm_user.db files using Vm_user.txt
650) this.width=650; "title=" 2.png "src=" Http://s3.51cto.com/wyfs02/M00/71/46/wKioL1XKsNTzAFfrAAArKQXnPbg348.jpg " alt= "Wkiol1xksntzaffraaarkqxnpbg348.jpg"/>
Permission to modify the database file is 600
6. Modify the FTP authentication file for the newly generated database file
650) this.width=650; "title=" 3.png "src=" Http://s3.51cto.com/wyfs02/M02/71/46/wKioL1XKsPSjJ9WbAAAgzD6ikls150.jpg " alt= "Wkiol1xkspsjj9wbaaagzd6ikls150.jpg"/>
Enter the following:
650) this.width=650; "title=" 4.png "src=" Http://s3.51cto.com/wyfs02/M00/71/46/wKioL1XKsRqAEiXeAABiTw5-dxM177.jpg " alt= "Wkiol1xksrqaeixeaabitw5-dxm177.jpg"/>
The file name that follows must be the same as the file name you created earlier, or it fails
7. Set the directory for the virtual user FTP and set the FTP user's access rights
650) this.width=650; "title=" 5.png "src=" Http://s3.51cto.com/wyfs02/M02/71/46/wKioL1XKsT-Rt8xeAAAtQhW0398515.jpg " alt= "Wkiol1xkst-rt8xeaaatqhw0398515.jpg"/>
650) this.width=650; "title=" 6.png "src=" Http://s3.51cto.com/wyfs02/M01/71/46/wKioL1XKsWexvN3hAAAji0e5hNc312.jpg " alt= "Wkiol1xkswexvn3haaaji0e5hnc312.jpg"/>
8. Configure the virtual user's account directory
650) this.width=650; "title=" 7.png "src=" Http://s3.51cto.com/wyfs02/M01/71/4A/wKiom1XKr46QVjr7AAAlYwhgg9I043.jpg " alt= "Wkiom1xkr46qvjr7aaalywhgg9i043.jpg"/>
Configure WS6L directory for this account and create profile for account
650) this.width=650; "title=" 8.png "src=" Http://s3.51cto.com/wyfs02/M00/71/4A/wKiom1XKr6_jAVBQAACTP8HdWrM833.jpg " alt= "Wkiom1xkr6_javbqaactp8hdwrm833.jpg"/>
WS6L account only has permission to download, no upload, new folder, delete file permissions;
9. Create an FTP directory for the WS6L account
650) this.width=650; "title=" 9.png "src=" Http://s3.51cto.com/wyfs02/M00/71/4A/wKiom1XKr9OyffYUAAAt4CrN71Y415.jpg " alt= "Wkiom1xkr9oyffyuaaat4crn71y415.jpg"/>
The first virtual account was created successfully and the validation is omitted here.
10. After the configuration is completed, found that there are fewer accounts, need to re-create the account upload account, only upload permissions, create Admin account, with all permissions:
Add these two accounts in the Vm_user.txt file
650) this.width=650; "title=" 1.png "src=" Http://s3.51cto.com/wyfs02/M01/71/4A/wKiom1XKr_7C3ylQAAA0e7J1gLU056.jpg " alt= "Wkiom1xkr_7c3ylqaaa0e7j1glu056.jpg"/>
650) this.width=650; "title=" 2.png "src=" Http://s3.51cto.com/wyfs02/M00/71/46/wKioL1XKsiiRfwrjAAAYf4wuFk4055.jpg " alt= "Wkiol1xksiirfwrjaaayf4wufk4055.jpg"/>
Rebuilding the database file
650) this.width=650; "title=" 3.png "src=" Http://s3.51cto.com/wyfs02/M01/71/4A/wKiom1XKsEiSev7KAABSF68om70349.jpg " alt= "Wkiom1xkseisev7kaabsf68om70349.jpg"/>
650) this.width=650; "title=" 4.png "src=" Http://s3.51cto.com/wyfs02/M02/71/46/wKioL1XKsmqDZGk9AAArKQXnPbg961.jpg " alt= "Wkiol1xksmqdzgk9aaarkqxnpbg961.jpg"/>
Create a user's profile
650) this.width=650; "title=" 5.png "src=" Http://s3.51cto.com/wyfs02/M01/71/4A/wKiom1XKsJTDCxyAAACXmlxLBx8955.jpg " alt= "Wkiom1xksjtdcxyaaacxmlxlbx8955.jpg"/>
650) this.width=650; "title=" 6.png "src=" Http://s3.51cto.com/wyfs02/M00/71/4A/wKiom1XKsMCR6Xh9AACehd6sq3c370.jpg " alt= "Wkiom1xksmcr6xh9aacehd6sq3c370.jpg"/>
Because upload account and admin account need to see all the user's root directory, upload is responsible for the completion of the upload work, but does not have the download, delete and other permissions, admin account, with all permissions, so do not need to re-establish FTP directory, directly designated as VAR/FTP can, At this point all configurations are complete, can be tested, the testing process is no longer detailed, the test is successful
If you encounter problems during the configuration process, you can send mail to [email protected] to communicate, I wish you a happy study!
This article from "A network of the World" blog, please be sure to keep this source http://2646213.blog.51cto.com/2636213/1683898
Linux under vsftp Virtual User Configuration different permissions