+
Skip to content

修复 htpasswd 使用加密 在 linux 低内核版本报错的 bug #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 19, 2022

Conversation

zctmdc
Copy link
Contributor

@zctmdc zctmdc commented Jun 9, 2022

fixed #4

使用 htpasswd 加密密码:

root@50b303640d95:/# htpasswd -nb uu pp

> htpasswd: Unable to generate random bytes: Function not implemented

使用 htpasswd 明文密码:

  • -p Do not encrypt the password (plaintext, insecure).
root@50b303640d95:/# docker-compose logs -f gitweb
gitweb | 2022/06/09 04:57:31 [error] 37#37: *6 user "uu": password mismatch,

使用 openssl passwd 加密密码:

root@50b303640d95:/# printf "uu:$(openssl passwd -apr1 pp)\n"
> uu:$apr1$pYsO9KFh$ZOeuVdAzbkxPd.5WZ1aCv/

测试正常

zctmdc added 4 commits June 9, 2022 12:40
fix bug

使用加密

```
root@50b303640d95:/# htpasswd -nb uu pp

> htpasswd: Unable to generate random bytes: Function not implemented
```
尝试不使用加密
use -p 
>  -p  Do not encrypt the password (plaintext, insecure).
```
root@50b303640d95:/# htpasswd -npb uu pp
> Warning: storing passwords as plain text might just not work on this platform.
uu:pp

```
测试正常
修复 htpasswd 明文密码不可用bug:
-   `ningx`  在 `Linux` 中使用 `htpasswd`` 明文密码不可用
- 使用 `openssl passwd -apr1` 创建密码
@fraoustin fraoustin merged commit 8e13187 into fraoustin:master Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

htpasswd erro
2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载