Vsftp Virtual User Rights settings

Source: Internet
Author: User

Vsftp Virtual User Rights settings (RPM)

First install vsftp db-4
Stephen a http://hi.baidu.com/phpfool/item/d295fd5f6f960e3d33e0a981
mkdir-p/opt/ftp
Create user useradd-d/opt/ftp virtual
Create a virtual user vi/eTc/vsftp/loguser.txt
The format is as follows
User name Admin
Password  Admin

db_load-t-T hash-f loguser.txt vsftp_login.db

Modify/ETC/PAM.D/VSFTPD
Auth required/lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login
Account required/lib/security/pam_userdb.so Db=/etc/vsftpd/vsftpd_login

Modify/etc/vsftpd/vsftpd.conf Add the following options
pam_service_name=vsftpd
user_config_dir=/etc/vsftpd/conf
Guest_enable=yes
guest_username=virtual

mkdir conf
create a profile with a user name just like the user name in Conf
Admin requires upload delete permission
VI Admin
Write_enable=yes
Download_enable=yes
Anon_upload_enable=yes
Anon_mkdir_write_enable=yes
Anon_other_write_enable=yes
Anon_world_readable_only=no
~
vi upload user only upload permission

Local_root=/var/ftp/share
Download_enable=no
Anon_upload_enable=yes
Anon_other_write_enable=no
Anon_mkdir_write_enable=yes
Anon_world_readable_only=no


PostScript on this blog found the following instructions http://yuanbin.blog.51cto.com/363003/129071
1. Virtual_use_local_privsParameterswhen Virtual_use_local_privs=yes, the virtual user and the local user have the same permissions, and when Virtual_use_local_privs=no, the virtual user and the anonymous user have the same permissions, the default is NO. When Virtual_use_local_privs=yes,write_enable=yes, the virtual user has write permissions (upload, download, delete, rename). When Virtual_use_local_privs=no,write_enable=yes,anon_world_readable_only=yes,anon_upload_enable=yes, virtual users cannot browse the directory, You can only upload files, no other permissions. When Virtual_use_local_privs=no,write_enable=yes,anon_world_readable_only=no,anon_upload_enable=no, virtual users can only download files, No additional permissions. When Virtual_use_local_privs=no,write_enable=yes,anon_world_readable_only=no,anon_upload_enable=yes, virtual users can only upload and download files , no additional permissions. When Virtual_use_local_privs=no,write_enable=yes,anon_world_readable_only=no,anon_mkdir_write_enable=yes, Virtual users can only download files and create folders without additional permissions. When Virtual_use_local_privs=no,write_enable=yes,anon_world_readable_only=no,anon_other_write_enable=yes, virtual users can only download , delete, and rename files without additional permissions.


Vsftp Virtual User Rights settings (RPM)

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.