[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 3

mknetid Command

Purpose

Generates data for the netid.byname map for use by the Network Inforamtion Services (NIS).

Syntax

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 ]

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

-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

/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

Related Information

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.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]