mknetid Command
Purpose
Generates data for the netid.byname map for use by the Network Information Services (NIS).
Syntax
To Create an NIS Map:
/usr/sbin/mknetid [ -q ] [ -p PasswordFile ] [ -g GroupFile ] [ -h HostsFile ] [ -m NetidFile ]
Description
The mknetid command
is used to produce the data for the netid.byname NIS map. It
will parse the files specified on the command line and build the corresponding
netid keys and values. Users will get the following entries:
unix.<uid>@<domainname> <uid>:<gid1>,<gid2>,...
Hosts
will get the following entries: unix.<hostname>@<domainname> 0:<hostname>
The
domainname that is used is the same that is configured on the system
at the time mknetid is run. The generated data is sent to stdout.
Each line contains one entry, with the key and the data separated
by a space.Flags
Item | Description |
---|---|
-q | Quiet mode - do not report any warnings about the data. |
-p PasswordFile | Specifies which passwd file to be used for reading the list of users. |
-g GroupFile | Specifies which groups file to be used for reading the list of group memberships. |
-h HostsFile | Specifies which hosts file to be used for reading the list of hostnames. |
-m NetidFile | Specifies a file from which to read any additional netid entries to be included. |
Files
Item | Description |
---|---|
/var/yp/Makefile | mknetid is most commonly used when rebuilding the NIS databases using /var/yp/Makefile. |
/etc/passwd | Where PasswordFile resides. |
/etc/groups | Where GroupFile resides. |
/etc/hosts | Where HostsFile resides. |
/etc/netid | Where NetidFile resides. |