htpasswd - Manage user files for basic authentication

简介:

 摘录于Apache说明文档

htpasswd is used to create and update the flat-files used to store usernames and password for basic authentication of HTTP users. If htpasswd cannot access a file, such as not being able to write to the output file or not being able to read the file in order to update it, it returns an error status and makes no changes.

Resources available from the Apache HTTP server can be restricted to just the users listed in the files created by htpasswd. This program can only manage usernames and passwords stored in a flat-file. It can encrypt and display password information for use in other types of data stores, though. To use a DBM database see dbmmanage.

htpasswd encrypts passwords using either a version of MD5 modified for Apache, or the system's crypt() routine. Files managed by htpasswd may contain both types of passwords; some user records may have MD5-encrypted passwords while others in the same file may have passwords encrypted with crypt().

This manual page only lists the command line arguments. For details of the directives necessary to configure user authentication in httpd see the Apache manual, which is part of the Apache distribution or can be found at http://httpd.apache.org/.













本文转hackfreer51CTO博客,原文链接:http://blog.51cto.com/pnig0s1992/479550,如需转载请自行联系原作者

相关文章
|
3月前
1.6 password file must not be other-accessible21
1.6 password file must not be other-accessible21
36 1
|
7月前
|
网络安全 开发工具 git
Windows下VSCode使用SSH连报错 Bad owner or permissions on C:\\Users\\admin/.ssh/config
Windows下VSCode使用SSH连报错 Bad owner or permissions on C:\\Users\\admin/.ssh/config
118 0
|
SQL 关系型数据库 MySQL
Access denied for user ‘root‘ @‘123.233.244.218‘(using password:YES)的解决方法
Access denied for user ‘root‘ @‘123.233.244.218‘(using password:YES)的解决方法
250 1
Access denied for user ‘root‘ @‘123.233.244.218‘(using password:YES)的解决方法
|
分布式计算 关系型数据库 Hadoop
         User root is not allowed to impersonate anonymous                     
错误: bymain is not allowed to impersonate hadoop(或者          User root is not allowed to impersonate anonymou...
1754 0
|
关系型数据库 MySQL 测试技术
(28000): Access denied for user 'root'@'127.0.0.1' (using password: YES)
在一台测试服务器测试Python脚本时,执行Python脚本时报如下错误:        主要错误信息为“operation the sql fail!1045 (28000): Access denied for user 'root'@'127.0.0.1' (using password: YES)”。
3583 0