温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Kerberos命令怎么使用

发布时间:2021-11-11 17:28:34 来源:亿速云 阅读:126 作者:柒染 栏目:大数据

Kerberos命令怎么使用,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

1.登录 kinit admin/admin@EXAMPLE.COM
2.查询登录状态 klist
3.退出 kdestroy
4.登录管理KDC服务器
  登录后台 kadmin.local
 查看用户列表 listprincs
 修改账号密码 change_password admin/admin@EXAMPLE.COM

删除用户 delete_principal test1
 创建用户 add_principal  test/admin@EXAMPLE.COM
5.使用Keytab验证是否可以登录(无错误输出即可)
kinit -kt /etc/security/keytabs/admin.keytab admin/admin@EXAMPLE.COM

6.查看keytab文件中的帐号列表
 klist -ket /etc/security/keytabs/hdfs.headless.keytab 

7.将用户导入到keytab文件(修改密码或者增加用户之后如果使用kinit -kt /etc/security/keytabs/admin.keytab admin/admin@EXAMPLE.COM 登录需要导出到keytab文件 )

[root@ambari-01 presto]# kadmin.local 
Authenticating as principal root/admin@thxh.COM with password.
kadmin.local:  xst -k /etc/security/keytabs/hive.service.keytab hive/ambari-01@thxh.COM
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type aes256-cts-hmac-sha1-96 added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type aes128-cts-hmac-sha1-96 added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type des3-cbc-sha1 added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type arcfour-hmac added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type camellia256-cts-cmac added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type camellia128-cts-cmac added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type des-hmac-sha1 added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type des-cbc-md5 added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
kadmin.local:  exit

 xst -k /etc/security/keytabs/hive.service.keytab  -norandkey  hive/ambari-01@thxh.COM (不修改密码)

这个好使 ktadd -k /etc/security/keytabs/user.keytab -norandkey user(不修改密码)

 修改账号密码 change_password admin/admin@EXAMPLE.COM    再试试导入密码到文件

关于Kerberos命令怎么使用问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注亿速云行业资讯频道了解更多相关知识。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI