Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MAKENDB(8)	      makendb $PACKAGE_VERSION@	man page	    MAKENDB(8)

NAME
       makendb - update	NSS_NDB	databases

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

DESCRIPTION
       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	 popu-
       lated.  makendb does this automatically if you import both.

       For large installations with large amounts of users & groups you	proba-
       bly  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.

OPTIONS
       -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 data-
	      bases.

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

FILES
       /usr/local/share/examples/nss_ndb/ndbsync

       /var/db/nss_ndb

SEE ALSO
       nss_ndb(8),  nsstest(8),	 nss_ndb.conf(5),   nsswitch.conf(5),	nsdis-
       patch(3), https://github.com/ptrrkssn/nss_ndb

AUTHOR
       nss_ndb and tools was written by	Peter Eriksson <pen@lysator.liu.se>.

1.0.24				  13 Jun 2020			    MAKENDB(8)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=makendb&sektion=8&manpath=FreeBSD+Ports+15.0>

home | help