Generates data for the netid.byname map for use by the Network Inforamtion Services (NIS).
To Generate raw netid.byname data:
/usr/sbin/makenetid [ -b ] [ -i NISInputFile ] [ -o NISOutputFile ] [ -d NISDomainName ] [ -m NISMasterName ] InputFile OutputFile
To Create an NIS Map:
/usr/sbin/mknetid [ -q ] [ -p PasswordFile ] [ -g GroupFile ] [ -h HostsFile ] [ -m NetidFile ]
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.
/var/yp/Makefile | mknetid is most commonly used when rebuilding the NIS databases using /var/yp/Makefile. |
/etc/passwd | |
/etc/groups | |
/etc/hosts | |
/etc/netid |
The ypinit command.
Network Information Services (NIS) Overview for System Management in AIX Version 4.3
Network Information Services (NIS and NIS+) Guide. NIS Reference in AIX Version 4.3 Network Information Services (NIS and NIS+) Guide.