⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 文件传输协议linux 下vsftpd2.1.0.tar.gz
💻
字号:
This example shows how to extend the "VIRTUAL_USERS" example to reflecta slightly more complex setup.Let's assume that we want two types of virtual user - one that can only browseand download content, and another that can upload new content as well asdownload existing content.To achieve this setup, we can use use of vsftpd's powerful per-userconfigurability (new in v1.1.0).In the previous virtual user example, we created two users - tom and fred.Let's say that we want fred to have write access to upload new files whilsttom can only download.Step 1) Activate per-user configurability.To activate this powerful vsftpd feature, add the following to/etc/vsftpd.conf:user_config_dir=/etc/vsftpd_user_confAnd, create this directory:mkdir /etc/vsftpd_user_confStep 2) Give tom the ability to read all files / directories.At the end of the last example, we noted that the virtual users can onlysee world-readable files and directories. We could make the /home/ftpsitedirectory world readable, and upload files with world-read permission. Butanother way of doing this is giving tom the ability to download files whichare not world-readable.For the tom user, supply a config setting override foranon_world_readable_only:echo "anon_world_readable_only=NO" > /etc/vsftpd_user_conf/tomCheck it out - login as tom and now "ls" will return a directory listing!Log in as fred and it won't.NOTE - restart vsftpd to pick up the config setting changes to/etc/vsftpd.conf. (Advanced users can send SIGHUP to the vsftpd listenerprocess).Step 3) Give fred the ability to read all files / directories and createnew ones but not interfere with existing files.echo "anon_world_readable_only=NO" > /etc/vsftpd_user_conf/fredecho "write_enable=YES" >> /etc/vsftpd_user_conf/fredecho "anon_upload_enable=YES" >> /etc/vsftpd_user_conf/fredCheck it out - login as tom and you can't upload. Log in as fred and you can!Try and delete a file as both tom and fred - you can't.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -