dbmmanage1
Manage user authentication files in dbm format
Usage
dbmmanage {[encoding]
filename
add | adduser | check | delete | update
username
[encpasswd
[group
[,group ...]
[comment]]]}
dbmmanage filename
view
[username]
dbmmanage filename
import
Summary
dbmmanage is used to create and update the DBM format files used to store usernames and password for basic authentication of HTTP users via mod_authn_dbm. Resources available from the Apache HTTP server can be restricted to just the users listed in the files created by dbmmanage. This program can only be used when the usernames are stored in a DBM file. To use a flat-file database see htpasswd.
Another tool to maintain a DBM password database is htdbm.
This manual page only lists the command line arguments. For details of the directives necessary to configure user authentication in httpd see the httpd manual, which is part of the Apache distribution or can be found at http://httpd.apache.org/.
Options
- filename
-
The filename of the DBM format file. Usually without the extension
.db,.pag, or.dir.
- username
-
The user for which the operations are performed. The username may not contain a colon (:).
- encpasswd
-
This is the already hashed password to use for the
updateandaddcommands. You may use a hyphen (-) if you want to get prompted for the password, but fill in the fields afterwards. Additionally when using theupdatecommand, a period (.) keeps the original password untouched.
- group
-
A group, which the user is member of. A groupname may not contain a colon (:). You may use a hyphen (
-) if you don't want to assign the user to a group, but fill in the comment field. Additionally when using theupdatecommand, a period (.) keeps the original groups untouched.
- comment
-
This is the place for your opaque comments about the user, like realname, mailaddress or such things. The server will ignore this field.
Encodings
-
-d -
crypt hashing (default, except on Win32, Netware)
-
-m -
MD5 hashing (default on Win32, Netware)
-
-s -
SHA1 hashing
-
-p -
plaintext (not recommended)
Commands
add-
Adds an entry for username to filename using the hashed password encpasswd. dbmmanage passwords.dat add rbowen foKntnEF3KSXA
adduser-
Asks for a password and then adds an entry for username to filename. dbmmanage passwords.dat adduser krietz
check-
Asks for a password and then checks if username is in filename and if it's password matches the specified one. dbmmanage passwords.dat check rbowen
delete-
Deletes the username entry from filename. dbmmanage passwords.dat delete rbowen
import-
Reads username:password entries (one per line) from STDIN and adds them to filename. The passwords already have to be crypted.
update-
Same as the
addusercommand, except that it makes sure username already exists in filename. dbmmanage passwords.dat update rbowen
view-
Just displays the contents of the DBM file. If you specify a username, it displays the particular record only. dbmmanage passwords.dat view
Releases
10 releases since Debian 2.0 (Hamm); the text changed 6 times.
-d since Debian 3.1 (Sarge);
-m since Debian 3.1 (Sarge);
-p since Debian 3.1 (Sarge);
-s since Debian 3.1 (Sarge).