NETGROUP_MKDB(8)        NetBSD System Manager's Manual        NETGROUP_MKDB(8)

NNAAMMEE
     nneettggrroouupp__mmkkddbb - generate the netgroup databases

SSYYNNOOPPSSIISS
     nneettggrroouupp__mmkkddbb [--oo _d_a_t_a_b_a_s_e] [file]

DDEESSCCRRIIPPTTIIOONN
     nneettggrroouupp__mmkkddbb creates db(3) style databases for the specified file. If no
     file is specified, then _/_e_t_c_/_n_e_t_g_r_o_u_p is used.  These databases are then
     installed into _/_e_t_c_/_n_e_t_g_r_o_u_p_._d_b_. The file must be in the correct format
     (see netgroup(5)).

     The options are as follows:

     --oo _d_a_t_a_b_a_s_e
             Put the output databases in the named file.

     The databases are used by the C library netgroup routines (see
     getnetgrent(3)).

     nneettggrroouupp__mmkkddbb exits zero on success, non-zero on failure.

FFIILLEESS
     /etc/netgroup.db          The current netgroup database
     /etc/netgroup.db.tmp      A temporary file
     /etc/netgroup             The current netgroup file

BBUUGGSS
     Because nneettggrroouupp__mmkkddbb guarantees not to install a partial destination
     file it must build a temporary file in the same file system and if suc-
     cessful use rename(2) to install over the destination file.

     If nneettggrroouupp__mmkkddbb fails it will leave the previous version of the destina-
     tion file intact.

SSEEEE AALLSSOO
     db(3),  getnetgrent(3),  netgroup(5)

4.4BSD                         February 3, 1994                              1
