Viewing and changing netinfo data, Using unix utilities for netinfo, Viewing and changing – Apple Mac OS X Server (Administrator’s Guide) User Manual
Page 114
114
Chapter 2
5
To delete a port property, select it and choose Delete from the Edit menu.
6
To add a property, choose New Property from the Directory menu and proceed as follows.
If you want to use one port for both TCP and UDP packets, double-click new_property and
change it to port. Then change new_value to the port number you want to use.
If you want separate TCP and UDP ports, double-click new_property and change it to
tcp_port. Then change new_value to the TCP port number you want to use. Next double-
click new_property and change it to udp_port. This time, change new_value to the UDP
port number you want to use.
Viewing and Changing NetInfo Data
Information in a NetInfo database is organized into directories, which are specific categories
of NetInfo records, such as users, machines, and mounts. For example, the users directory
contains a record for each user defined in the domain.
Each record is a collection of properties. Each property has a key (listed in the Property
column) and one or more values (shown in the Value(s) column). The key is used by
processes to retrieve values.
The user named “root” in a domain can change any of its properties or add new ones.
Properties with the prefix “_writers_” list the short names of other users authorized to
change the value of a particular property. For example, _writers_passwd is the short name of
the user who can change this user’s password.
You can use NetInfo Manager, located in /Applications/Utilities, on any Mac OS X computer to
view the administrative data in a NetInfo domain.
Using UNIX Utilities for NetInfo
Several UNIX command-line utilities that interact with NetInfo are available through the
Terminal application. To find out more about these utilities, view their man pages.
Utility
Description
niload
Loads data from UNIX configuration files (such as /etc/passwd) into a NetInfo
database.
nidump
Converts data from a NetInfo database to a UNIX configuration file.
niutil
Reads from a NetInfo database and writes to one.
nigrep
Searches all NetInfo domains for all instances of a string you specify.
nicl
Creates, reads, or manages NetInfo data.