免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 861 | 回复: 0
打印 上一主题 下一主题

ftp安装 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-06 11:41 |只看该作者 |倒序浏览

                LINUX安装的时候,选择组件的时候要是没有选择FTP服务器(这里是vsftpd),系统会自带一个叫gssftp的ftp服务器。
安装好之后默认是本机用户不能登陆的。只要找到/etc/xinetd.d/gssftp,把 server_args 後面的 -a 移除,只留下 -l。重新启动gssftp:
/sbin/service xinetd restart
即可
******************************************************************************
       
透過 ntsysv 啟動 RedHat AS4 的 gssftp 後,試著 ftp 到本機,會發生連敲密碼的機會都沒有,就得到以下訊息:
[root@mozart]# ftp -i localhost
Connected to localhost.localdomain.
220 mozart FTP server (Version 5.60) ready.
334 Using authentication type GSSAPI; ADAT must follow
GSSAPI accepted as authentication type
GSSAPI error major: Miscellaneous failure
GSSAPI error minor: No credentials cache found
GSSAPI error: initializing context
GSSAPI authentication failed
334 Using authentication type KERBEROS_V4; ADAT must follow
KERBEROS_V4 accepted as authentication type
Kerberos V4 krb_mk_req failed: You have no tickets cached
Name (localhost:root):
530 Must perform authentication before identifying USER.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
一個迅速解決這個問題的方法是,修改 /etc/xinetd.d/gssftp,把 server_args 後面的 -a 移除,只留下 -l
# default: off
# description: The kerberized FTP server accepts FTP connections \
#              that can be authenticated with Kerberos 5.
service ftp
{
disable = no
flags           = REUSE
socket_type     = stream
wait            = no
user            = root
server          = /usr/kerberos/sbin/ftpd
server_args     = -l
log_on_failure  += USERID
}
接著記得在 /etc/vsftpd/vsftpd.conf 檔案結尾加入下面這行,否則 ftp 介面中秀出來的時間會差 8 個鐘頭。
use_localtime=YES
再讓 xinetd 重讀一次設定檔,就搞定了。
[root@mozart ~]# /etc/rc.d/init.d/xinetd reload
Reloading configuration:                                   [  OK  ]
       
                                                                                                       
       
         
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/14529/showart_354493.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP