HTDIGEST(1)
π HTDIGEST π
okay bestie, so htdigest is the little command-line icon that manages user files for digest authentication. she's giving lowercase but she's got main character energy fr fr. π
β¨ SYNOPSIS β¨
htdigest [ -c ] passwdfile realm username
πΈ SUMMARY πΈ
so basically, htdigest is what you use to create and update the flat-files that store usernames, realm, and password for digest authentication of HTTP users. no cap.
here's the tea: resources on your Apache HTTP server can be locked down so only the users listed in the files that htdigest makes can get in. yes, gatekeeping is valid here π
.
quick heads up: this manual page only lists the command line arguments. for the details of the directives you need to actually configure digest authentication in httpd, go read the Apache manual β it's part of the Apache distribution, or you can find it at http://httpd.apache.org/. π₯
β¨ OPTIONS β¨
-cβ create thepasswdfile. and ifpasswdfilealready exists?? it gets deleted first. π gone. poof. not me being dramatic, that's literally what it does.passwdfileβ the name of the file that's gonna contain the username, realm, and password. if-cis given, this file gets created if it doesn't already exist, or deleted and recreated if it does exist. so like, be careful bestie π«Ά.realmβ the realm name that the user name belongs to. See2617for more details. iykyk π.usernameβ the user name to create or update inpasswdfile. ifusernamedoes not exist in this file, an entry gets added β¨. if it does exist, then the password is changed. glow up unlocked π.
π SECURITY CONSIDERATIONS π
this program is not safe as a setuid executable. do not make it setuid. like, seriously, do not. i'm not even being cute about it, this one's real. π
π¦ FILES π¦
the digest authentication file path is specified as an argument on the command line and may be located anywhere on the filesystem. she's free, she roams π.
passwdfileβ the flat-file containing usernames, realms, and password hashes. the whole squad, all in one file π.
and that's the whole page, periodt π
htdigest β Apache HTTP Server β 2026-05-08 π mwah, go secure those resources bestie β¨
π¦ where this page comes from
- alpine 3.22: apache2-doc 2.4.69-r0 Β· Apache-2.0
- alpine 3.23: apache2-doc 2.4.69-r0 Β· Apache-2.0
- alpine 3.24: apache2-doc 2.4.69-r0 Β· Apache-2.0
- arch rolling: apache 2.4.69-1 Β· Apache-2.0
- debian bookworm: apache2-utils 2.4.68-1~deb12u1 Β· Apache-2.0
- debian trixie: apache2-utils 2.4.68-1~deb13u1 Β· Apache-2.0
- debian trixie: apache2-utils 2.4.69-1~deb13u1 Β· Apache-2.0
- fedora 43: httpd-tools 2.4.68-1.fc43
- fedora 43: httpd-tools 2.4.69-1.fc43 Β· Apache-2.0 AND (BSD-3-Clause AND metamail AND HPND-sell-variant AND Spencer-94)
- fedora 44: httpd-tools 2.4.69-1.fc44 Β· Apache-2.0 AND (BSD-3-Clause AND metamail AND HPND-sell-variant AND Spencer-94)
- nixpkgs unstable: apache-httpd 2.4.69
- ubuntu stonking: apache2-utils 2.4.68-1ubuntu4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms