免费注册 查看新帖 |

Chinaunix

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

redhat 7.2的用户口令加密方式 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-02-24 14:49 |只看该作者 |倒序浏览
有谁知道redhat7.2的用户口令加密方式,我用的是crypt函数,加密方式是\r\ncrypt(\"password\",\"$1$\";\r\n\r\n用gcc -o test test.c -lcrypt编译\r\n\r\n但得到的口令结果和shadow文件中的不一样,有谁知道该如何加密才能得到与shadow文件中一致的结果,请指点迷津。\r\n

论坛徽章:
0
2 [报告]
发表于 2002-02-26 00:18 |只看该作者
not sure.  vaguelly remember redhat allows MD5, so up to 128 characters, as opposed to the normal 8 chars. if you just want to do it one time, set up a dummy user, and passwd to change.  if you want to do it in a function, you need to look around.  i am sure there is a way if you look hard enough.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP