Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

netgroup_mkdb(8) [netbsd man page]

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

NAME
netgroup_mkdb -- generate the netgroup database SYNOPSIS
netgroup_mkdb [-o database] [file] DESCRIPTION
netgroup_mkdb creates a db(3) database for the specified file. If no file is specified, then /etc/netgroup is used. This database is installed into /var/db/netgroup.db. The file must be in the correct format (see netgroup(5)). The options are as follows: -o database Put the output databases in the named file. The databases are used by the C library netgroup routines (see getnetgrent(3)). netgroup_mkdb exits zero on success, non-zero on failure. FILES
/var/db/netgroup.db The current netgroup database /var/db/netgroup.db.tmp A temporary file /etc/netgroup The current netgroup file SEE ALSO
db(3), getnetgrent(3), netgroup(5) BUGS
Because netgroup_mkdb 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 netgroup_mkdb fails it will leave the previous version of the destination file intact. BSD
May 20, 2007 BSD

Check Out this Related Man Page

NETGROUP(5)						      BSD File Formats Manual						       NETGROUP(5)

NAME
netgroup -- defines network groups SYNOPSIS
netgroup DESCRIPTION
The netgroup file specifies ``netgroups'', which are sets of (host, user, domain) tuples that are to be given similar network access. Each line in the file consists of a netgroup name followed by a list of the members of the netgroup. Each member can be either the name of another netgroup or a specification of a tuple as follows: (host, user, domain) where the host, user, and domain are character string names for the corresponding component. Any of the comma separated fields may be empty to specify a ``wildcard'' value or may consist of the string ``-'' to specify ``no valid value''. The members of the list may be separated by whitespace; the ``'' character may be used at the end of a line to specify line continuation. The functions specified in getnetgrent(3) should normally be used to access the netgroup database. If 'files' is specified for the 'netgroup' database in nsswitch.conf(5), (or no 'netgroup' entry is specified), then these functions operate on the db(3) version of the netgroup (netgroup.db) file which can be generated using netgroup_mkdb(8). If 'nis' is specified then the NIS maps 'netgroup', 'netgroup.byhost', and 'netgroup.byuser' are used. Lines that begin with a # are treated as comments. FILES
/etc/netgroup.db the netgroup database. SEE ALSO
getnetgrent(3), exports(5), nsswitch.conf(5), netgroup_mkdb(8) COMPATIBILITY
The file format is compatible with that of various vendors, however it appears that not all vendors use an identical format. BUGS
The interpretation of access restrictions based on the member tuples of a netgroup is left up to the various network applications. BSD
January 16, 1999 BSD
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

NIS problem with netgroup

Hi@all, I'd setup a nis server and 4 slaves. Update of passwd work's fine, but if i create a netgroup file the make all process hang by push the netgroup file. I work with AIX 4.3.3.0 and Maintance Level 5. Tank's for help (1 Reply)
Discussion started by: Michael
1 Replies

2. HP-UX

Help

Hi all, i need u r help please is it possible to rename the database it is possible, if possible please let me know the way of changing. Thank you, Ramana (1 Reply)
Discussion started by: mcseramana
1 Replies

3. UNIX for Dummies Questions & Answers

how to use ldapadd

We have netgroup in ldap in Sun java directory server, how can I add or remove a user to/from a netgroup via command line without using ldif file? I need to put this into a script. Here is a sample netgroup, and I want to add user tonyz to it: # ldapsearch -h ldapserver.com -p 389 -b ... (1 Reply)
Discussion started by: jalite19
1 Replies

4. Shell Programming and Scripting

Pull Netgroup from Servers

Hi, How to pull netgroup from all servers I think the netgroup resides in /etc/security/access.conf so I want to know how to get the list of netgroup in all the servers. I have a jump server I can run the script from there to get the list but not sure how to do the script. Any ideas or... (1 Reply)
Discussion started by: dbashyam
1 Replies