阿里云ubuntu vsftp安装配置以及常见问题

ubuntu下安装与配置vsftpd服务请参考:

http://wiki.ubuntu.org.cn/Vsftpd

此问说明的比较详尽。

配置文件详解可使用:

man 5 /etc/vsftpd.conf


值得注意的问题是:

1,如果本地用户可登录时,如果用户家目录可写,会提示错误:vsftpd: refusing to run with writable root inside chroot() 

   为了避免一个安全漏洞,从 vsftpd 2.3.5 开始,chroot 目录必须不可写。使用命令:

# chmod 555 /home/user

2,关于chroot


       chroot_list_enable
              If  activated,  you  may  provide a list of local users who are placed in a chroot() jail in their home directory upon login. The meaning is slightly different if chroot_local_user is set to YES. In this case, the list becomes a list of users which are NOT to be placed in a chroot() jail.  By default, the file containing this list is /etc/vsftpd.chroot_list, but you may override  this with the chroot_list_file setting.
              Default: NO

       chroot_local_user
              If  set  to YES, local users will be (by default) placed in a chroot() jail in their home directory after login.  Warning: This option has security implications, especially if the users have upload permission, or shell access. Only enable if you know what you are doing.  Note that these security implications are not vsftpd specific. They apply to all FTP daemons which  offer  to put local users in chroot() jails.
              Default: NO


3,关于登录用户


       userlist_deny
              This option is examined if userlist_enable is activated. If you set this setting to NO, then users will be  denied  login  unless  they  are  explicitly  listed  in  the  file  specified  by
              userlist_file.  When login is denied, the denial is issued before the user is asked for a password.


              Default: YES


       userlist_enable
              If  enabled,  vsftpd  will load a list of usernames, from the filename given by userlist_file.  If a user tries to log in using a name in this file, they will be denied before they are asked
              for a password. This may be useful in preventing cleartext passwords being transmitted. See also userlist_deny.


              Default: NO

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值