linux vsftp 开放root权限

linux版本为
[quote]# more /etc/redhat-release
CentOS release 5 (Final)[/quote]
内核为
[quote]# uname -a
Linux mcprod 2.6.18-53.el5PAE #1 SMP Mon Nov 12 02:55:09 EST 2007 i686 i686 i386 GNU/Linux[/quote]
vsftp需要的rpm包为
[quote]# rpm -qa|grep vsftp
vsftpd-2.0.5-10.el5[/quote]
在/etc/vsftpd下面存放着vsftp用户配置的3个文件:user_list,vsftpd.conf,ftpusers
[quote]# ls -rtl
total 24
-rwxr--r-- 1 root root 338 Mar 15 2007 vsftpd_conf_migrate.sh
-rw------- 1 root root 362 Jul 13 22:32 user_list
-rw------- 1 root root 4428 Jul 17 13:14 vsftpd.conf
-rw------- 1 root root 126 Jul 17 13:24 ftpusers[/quote]

将ftpusers文件里面的root用户注释掉即可。
注意user_list文件中的这句话
[quote]# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.[/quote]
********************************************
linux版本为
[quote]# more /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)[/quote]
内核为
[quote]# uname -a
Linux test 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 i686 i386 GNU/Linux[/quote]
vsftp开放root权限,只要将root用户注释掉即可
[quote]# more /etc/vsftpd.ftpusers
# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

# more /etc/vsftpd.user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd.ftpusers
# for users that are denied.
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[/quote]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值