Generates data for the netid.byname map for use by the Network Information Services (NIS).
To Create an NIS Map:
/usr/sbin/mknetid [ -q ] [ -p PasswordFile ] [ -g GroupFile ] [ -h HostsFile ] [ -m NetidFile ]
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.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. |
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. |