Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5707625
  • 博文数量: 409
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 8273
  • 用 户 组: 普通用户
  • 注册时间: 2013-10-23 19:15
个人简介

qq:78080458 学习交流群:150633458

文章分类

全部博文(409)

文章存档

2019年(127)

2018年(130)

2016年(20)

2015年(60)

2014年(41)

2013年(31)

分类: LINUX

2019-06-14 06:24:29

htdigest

htdigest指令用来建立和更新apache服务器用于摘要认证的存放用户认证信息的文件。

此命令的适用范围:RedHatRHELUbuntuCentOS

 

1、语法

htdigest  [-c] passfile   realm  username

 

2、参数列表

选项

说明

-c 

创建密码文件,如果存在,首先删除

 

3、实例

创建摘要认证文件 

[root@localhost ~]# htdigest -c htfile qq.com weijie          //用户weijieqq.com的认证文件

Adding password for weijie in realm qq.com.

New password:                                      //输入密码

Re-type new password:                            //确认密码

You have new mail in /var/spool/mail/root

[root@localhost ~]# cat htfile                 //显示认证文件

weijie:qq.com:3d3feff0cf3f031cf3652349b7249d59

 

 

阅读(5830) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~