linux telnet及vsftpd配置
linux telnet及vsftpd配置
linux telnet及vsftpd配置
1.查看telnet安装包
Java代码
[root@localhost ~]# rpm -aq | grep telnet
telnet-0.17-39.el5
telnet-server-0.17-39.el5
没有看到结果请安装telent-server服务
2.修改安全配置文件
mv /etc/securetty /etc/securetty.bak
3.重启xinetd服务
service xinetd restart
vsftpd配置
1.查看vsftpd安装包
rpm -aq | grep vsftpd
没有看到结果请安装vsftpd服务
2.修改/etc/vsftpd/ftpusers
Java代码
# Users that are not allowed to login via ftp
#root --注释掉
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
修改/etc/vsftpd/user_list
Java代码
# 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
3.重启vsftp服务
service vsftpd restart
4.测试ftp服务
Java代码
[root@localhost vsftpd]# ftp localhost
Connected to localhost.localdomain.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
评论暂时关闭