全部博文(322)
分类: LINUX
2011-05-17 14:20:33
1、启动gssftp服务
setup->选择gssftp;
2、修改gssftp文件
vi /etc/xinetd.d/gssftp;
修改后内容如下:
service ftp
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/ftpd
#server_args = -l -a
server_args = -l
log_on_failure += USERID
}
注意两点:a、disable=no; b、server_args=-l;
3、service xinetd restart;
4、检验:
可用本机检验,输入命令ftp 127.0.0.1
出现下列内容,就ok,如果root还是登录不上就看第5条:
Connected to localhost (127.0.0.1).
220 localhost.localdomain FTP server (Version 5.60) ready.
Name (localhost:root): root
331 Password required for root.
Password:
5、修改/etc/pam.d/ftp(telnet是修改login)
屏蔽掉这行,如:#auth required /lib/security/pam_securetty.so