GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MAKENDB(8) makendb $PACKAGE_VERSION@ man page MAKENDB(8)

makendb - update NSS_NDB databases

makendb [options] <db-path> <src-path>

This manual page documents the makendb command.

makendb is a tool that can be used to update (and possibly dump) NSS_NDB databases. It also contains special update modes for importing passwd and group files.

Please note: In order for the nss_ndb backend to be able to extract the list of groups for a specific user efficiently is important to import both passwd and group data so the group.byuser database can be populated. makendb does this automatically if you import both.

For large installations with large amounts of users & groups you probably want to use some other tool to import data into the NDB databases. One example of such a tool written in Perl called ndbsync can be found in the examples directory. This tool syncs the local NDB databases with a remote MySQL database and can be run from cron.

-h
Displays usage information
-V
Display version number
-v
Increase verbosity (may be specified multiple times)
-d
Increase internal debugging level (may be specified multiple times)
-k
Also print the "key" when dumping databases.
-p
Print (dump) the database contents.
-u
Enable unique mode. Refuse to overwrite already existing records in the database when importing. -Ddelim Specify field delimiter characters. By default uses ":".
-T type
Specify type of file to read. Valid types are passwd or group and must be specified when importing data into the NDB databases.

$ makendb -T passwd /var/db/nss_ndb/passwd </etc/master.passwd
$ makendb -T group /var/db/nss_ndb/group </etc/group

/usr/local/share/examples/nss_ndb/ndbsync
/var/db/nss_ndb

nss_ndb(8), nsstest(8), nss_ndb.conf(5), nsswitch.conf(5), nsdispatch(3), https://github.com/ptrrkssn/nss_ndb

nss_ndb and tools was written by Peter Eriksson <pen@lysator.liu.se>.
13 Jun 2020 1.0.24

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.