Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
dbmmanage(1)
Edit
PageHistory
Diff
Info
LikePages
dbmmanage !!!dbmmanage NAME SYNOPSIS DESCRIPTION OPTIONS BUGS SEE ALSO ---- !!NAME dbmmanage - Create and update user authentication files in DBM format !!SYNOPSIS __dbmmanage__ ''filename'' [[ ''command'' ] [[ ''username'' [[ ''encpasswd'' ] ] !!DESCRIPTION __dbmmanage__ is used to create and update the DBM format files used to store usernames and password for basic authentication of HTTP users. Resources available from the __apache__ Apache web 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__. This manual page only lists the command line arguments. For details of the directives necessary to configure user authentication in __apache__ see the Apache 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. ''command'' This selects the operation to perform: __add__ Adds an entry for ''username'' to ''filename'' using the encrypted password ''encpassword''. __adduser__ Asks for a password and then adds an entry for ''username'' to ''filename'' . __check__ Asks for a password and then checks if ''username'' is in ''filename'' and if it's password matches the specified one. __delete__ Deletes the ''username'' entry from ''filename''. __import__ Reads username:password entries (one per line) from STDIN and adds them to ''filename''. The passwords already has to be crypted. __update__ Same as the username'' already exists in ''filename''. __view__ Just displays the complete contents of the DBM file. ''username'' The user for which the update operation is performed. !!BUGS One should be aware that there are a number of different DBM file formats in existance, and with all likelihood, libraries for more than one format may exist on your system. The three primary examples are NDBM, the GNU project's GDBM, and Berkeley DB 2. Unfortunately, all these libraries use different file formats, and you must make sure that the file format used by ''filename'' is the same format that __dbmmanage__ expects to see. __dbmmanage__ currently has no way of determining what type of DBM file it is looking at. If used against the wrong format, will simply return nothing, or may create a different DBM file with a different name, or at worst, it may corrupt the DBM file if you were attempting to write to it. __dbmmanage__ has a list of DBM format preferences, defined by the __@AnyDBM::ISA__ array near the beginning of the program. Since we prefer the Berkeley DB 2 file format, the order in which __dbmmanage__ will look for system libraries is Berkeley DB 2, then NDBM, and then GDBM. The first library found will be the library __dbmmanage__ will attempt to use for all DBM file transactions. This ordering is slightly different than the standard __@AnyDBM::ISA__ ordering in perl, as well as the ordering used by the simple dbmopen() call in Perl, so if you use any other utilities to manage your DBM files, they must also follow this preference ordering. Similar care must be taken if using programs in other languages, like C, to access these files. Apache's __mod_auth_db.c__ module corresponds to Berkeley DB 2 library, while __mod_auth_dbm.c__ corresponds to the NDBM library. Also, one can usually use the __file__ program supplied with most Unix systems to see what format a DBM file is in. !!SEE ALSO __apache(8)__ ----
One page links to
dbmmanage(1)
:
Man1d
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.