Kerberos命令怎么使用,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。
1。登录kinit admin/admin@EXAMPLE。COM
2。查询登录状态,中
3。退出,kdestroy
4。登录管理KDC服务器
,登录后台kadmin。当地
,查看用户列表,listprincs
,修改账号密码,change_password admin/admin@EXAMPLE。COM
删除用户delete_principal test1
,创建用户,add_principal测试/admin@EXAMPLE。COM
5。使用Keytab验证是否可以登录(无错误输出即可)
kinit kt/etc/security/keytabs/admin.keytab admin/admin@EXAMPLE.COM
6。查看keytab文件中的帐号列表
,中刃/etc/security/keytabs/hdfs.headless.keytab
7。将用户导入到keytab文件(<强>修改密码或者增加用户之后如果使用强> kinit kt/etc/security/keytabs/admin.keytab admin/admin@EXAMPLE。COM登录需要<强>导出到keytab文件>强,)
[root@ambari-01 转眼间]#,kadmin.local Authenticating as  principal 根/admin@thxh.COM with 密码。 kadmin.local:,, xst -k /etc/安全/keytab/hive.service.keytab 蜂窝/ambari-01@thxh.COM Entry for  principal 蜂窝/ambari-01@thxh.COM with kvno 5, encryption type aes256 - cts - hmac - sha1 - 96, added 用keytab WRFILE:/etc/安全/keytab/hive.service.keytab。 Entry for  principal 蜂窝/ambari-01@thxh.COM with kvno 5, encryption type aes128 - cts - hmac - sha1 - 96, added 用keytab WRFILE:/etc/安全/keytab/hive.service.keytab。 Entry for  principal 蜂窝/ambari-01@thxh.COM with kvno 5, encryption type des3-cbc-sha1 added 用keytab WRFILE:/etc/安全/keytab/hive.service.keytab。 Entry for  principal 蜂窝/ambari-01@thxh.COM with kvno 5, encryption type arcfour-hmac added 用keytab WRFILE:/etc/安全/keytab/hive.service.keytab。 Entry for  principal 蜂窝/ambari-01@thxh.COM with kvno 5, encryption type camellia256-cts-cmac added 用keytab WRFILE:/etc/安全/keytab/hive.service.keytab。 Entry for  principal 蜂窝/ambari-01@thxh.COM with kvno 5, encryption type camellia128-cts-cmac added 用keytab WRFILE:/etc/安全/keytab/hive.service.keytab。 Entry for  principal 蜂窝/ambari-01@thxh.COM with kvno 5, encryption type des-hmac-sha1 added 用keytab WRFILE:/etc/安全/keytab/hive.service.keytab。 Entry for  principal 蜂窝/ambari-01@thxh.COM with kvno 5, encryption type des-cbc-md5 added 用keytab WRFILE:/etc/安全/keytab/hive.service.keytab。 kadmin.local:,,退出
, xst - k/etc/security/keytabs/hive.service.keytab <强> -norandkey 强> <强> 强>,蜂巢/ambari-01@thxh。COM <强>(不修改密码)强>
这个好使ktadd - k/etc/security/keytabs/user.keytab -norandkey用户<强>(不修改密码)强>
,修改账号密码,change_password admin/admin@EXAMPLE.COM ,,再试试导入密码到文件
关于Kerberos命令怎么使用问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注行业资讯频道了解更多相关知识。