Apache htpasswd命令
2015-10-28 22:06
666 查看
一、简介
htpasswd是apache的一个工具,该工具主要用于建立和更新存储用户名、密码的文本文件,主要用于对基于http用户的认证。
二、语法
三、实例
htpasswd是apache的一个工具,该工具主要用于建立和更新存储用户名、密码的文本文件,主要用于对基于http用户的认证。
二、语法
Usage: htpasswd [-cimBdpsDv] [-C cost] passwordfile username htpasswd -b[cmBdpsDv] [-C cost] passwordfile username password htpasswd -n[imBdps] [-C cost] username htpasswd -nb[mBdps] [-C cost] username password -c Create a new file. -n Don't update file; display results on stdout. -b Use the password from the command line rather than prompting for it. -i Read password from stdin without verification (for script usage). -m Force MD5 encryption of the password (default). -B Force bcrypt encryption of the password (very secure). -C Set the computing time used for the bcrypt algorithm (higher is more secure but slower, default: 5, valid: 4 to 31). -d Force CRYPT encryption of the password (8 chars max, insecure). -s Force SHA encryption of the password (insecure). -p Do not encrypt the password (plaintext, insecure). -D Delete the specified user. -v Verify password for the specified user. On other systems than Windows and NetWare the '-p' flag will probably not work. The SHA algorithm does not use a salt and is less secure than the MD5 algorithm.
三、实例
https://blog.linuxeye.com/333.html
参考:https://blog.linuxeye.com/333.html
相关文章推荐
- Apache fcgistarter命令
- Apache logresolve命令
- 运维之Centos apache vsftpd配置
- Java工具类之Apache的Commons Lang和BeanUtils
- apache SSL配置
- Configuring a Puppet Master Server with Passenger and Apache
- Apache+mysql+php+phpMyAdmin最详细安装过程
- Windows安装Apache 2.2.17、PHP 5.3.5与MySQL
- centos Apache、php、mysql默认安装路径
- apache2.2.21(x64)+php(x64),安装+部署 windows版
- Linux下apache2.2.6+php5.2.5+mysql5.0.46+Zend Optimizer 3.3.0+phpMyAdmin-2.11.1源码(一)
- Linux下apache2.2.6+php5.2.5+mysql5.0.46+Zend Optimizer 3.3.0+phpMyAdmin-2.11.1源码(二)
- CentOS 5.6安装lamp(Apache2+PHP5+MySQL)
- Linux下Apache设置上传文件时候的默认权限(umask)
- Win+Apache+PHP+MySQL+Tcomcat(或Resin)
- Apache无法启动解决 the requested operation has failed
- Greenplum 以 Apache 协议开源,已托管 GitHub
- 第 四 十 三 天:Apache 的 相 关 问 题
- Real-time stream processing: The next step for Apache Flink
- Apache Ignite vs Apache Spark