系统城装机大师 - 固镇县祥瑞电脑科技销售部宣传站!

当前位置:首页 > 系统教程 > 其它教程 > 详细页面

RHEL6.6 & CentOS 6如何安装Kerberized FTP client命令

时间:2020-06-11来源:www.pcxitongcheng.com作者:电脑系统城

手头一台Linux服务器(Red Hat Enterprise Linux Server release 6.6),写了一个shell脚本,在上面测试运行时,发现Kerberized ftp client命令不存在。注意这里所说的是ftp命令,不是ftp工作站。
 

 
[root@KerryDB ~]# more /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.6
[root@KerryDB ~]# ls /usr/kerberos/bin/ftp 
ls: cannot access /usr/kerberos/bin/ftp: No such file or directory
[root@KerryDB ~]# 
[root@KerryDB ~]# whereis ftp
ftp:
 
之前印象中,Kerberized ftp client来自包krb5-workstation,所以我在一台RHEL 5.7上面验证了一下,如下所示,Kerberized ftp client确实来自包krb5-workstation
 
# more /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
# rpm -qf /usr/kerberos/bin/ftp 
krb5-workstation-1.6.1-62.el5
 
于是在这台服务器上安装了yum install krb5-workstation,但是安装过后依然找不到client命令
 
[root@KerryDB ~]# yum install krb5-workstation.x86_64 
[root@KerryDB ~]# yum info installed | grep "krb5-workstation"
Name        : krb5-workstation
Description : Kerberos is a network authentication system. The krb5-workstation
[root@KerryDB ~]# yum list installed | grep "krb5-workstation"
krb5-workstation.x86_64                 1.15.1-46.el7                  @base   
[root@KerryDB ~]# ll /usr/kerberos/bin/ftp
ls: cannot access /usr/kerberos/bin/ftp: No such file or directory
[root@KerryDB ~]# whereis ftp
ftp:
[root@KerryDB ~]# which ftp
/usr/bin/which: no ftp in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
 
查了资料(如有不正确,敬请指正),似乎从CentOS 6/ RHEL 6开始, krb5-workstation中已经不包含Kerberized ftp client了,而是包含在krb5-appl-clients这个包中。
 
https://bugzilla.redhat.com/show_bug.cgi?id=600428
clip_image001
 
 
如下所示,安装完krb5-appl-clients就能看到/usr/kerberos/bin/ftp命令了。
 
    [root@KerryDB ~]# yum install krb5-appl-clients
 
如果没有配置yum,那么可以从下面地址下载安装包。
 
https://centos.pkgs.org/6/centos-x86_64/krb5-appl-clients-1.0.1-7.el6_2.1.x86_64.rpm.html
 
 
另外,在解决这个问题的过程,查了不少资料,下面个资料介绍了不同Linux版本中ftp client来自那些包。是个不错的总结。
 
Many Linux and Unix systems have Kerberized FTP clients installed by default. You can also download and install the MIT Kerberos distribution, which includes this client. Depending on your system, it may be installed in different locations, for example:
·         /usr/kerberos/bin/ftp on Red Hat and derivatives (from the krb5-workstation package 或krb5-appl-clients)
·         /usr/bin/krb5-ftp on Debian and derivatives, such as Ubuntu (from the krb5-clients package)
·         /usr/bin/kftp on Gentoo (from the mit-krb5 ebuild)
·         /usr/lib/heimdal/bin/ftp on SuSE 9 (from the Heimdal package)
·         /usr/lib/mit/bin/ftp on SuSE 10 (from the krb5-apps-clients package)
 
分享到:

相关信息

  • ThinkPad蓝牙鼠标如何配对

    ThinkPad蓝牙鼠标如何配对解答步骤41U5008鼠标驱动官网地址: https://support.lenovo.com/en_US/downloads/detail.page?&LegacyDocID=MIGR-67201 第一种方式是比较传统的:使...

    2024-04-11

  • USB接口无法识别设备的解决方法

    故障现象: USB设备U盘、移动硬盘等插入后提示无法识别的设备,确认设备本身正常,设备可加电,或插入设备后加电但无任何反应,无法使用。新型号机器多表现为黄色USB接口存在此问题,...

    2024-04-11

系统教程栏目

栏目热门教程

人气教程排行

站长推荐

热门系统下载