Go to main content

マニュアルページ セクション 8: システム管理コマンド

印刷ビューの終了

更新: 2022年7月27日
 
 

ypinit(8)

名前

ypinit - set up NIS client

形式

/usr/sbin/ypinit [-c] [-m] [-s master_server]

説明

ypinit can be used to set up an NIS client system. This command must be run with superuser privileges, which may be provided by the Name Service Management rights profile. This script need not be used at all if ypbind(8) is started with the –broadcast option (it is invoked with this option from the svc:/network/nis/client:default service).

Normally, ypinit is run only once after installing the system. It may be run whenever a new NIS server is added to the network or an existing one is decommissioned.

ypinit prompts for a list of NIS servers to bind the client to; this list should be ordered from the closest to the furthest server. It is recommended that you list each of these NIS servers by name and numeric IP address in /etc/hosts. Though the practice is not recommended, NIS allows you to list servers by numeric address only, bypassing /etc/hosts. In such a configuration, ypwhich(1) returns a numeric address instead of a name.

ypinit stores the list of servers to which a client can bind in the file /var/yp/binding/domain/ypservers. This file is used by ypbind when run without the –broadcast option.

オプション

–c

Set up a ypclient system.

–m

Build a master ypserver database.

–s master_server

Slave database. master_server must be the same master configured in the YP maps and returned by the ypwhich –m command.

ファイル

/etc/hosts

File in which it is recommended that NIS servers be listed.

/var/yp/binding/domain/ypservers

Lists the servers to which the NIS client is allowed to bind.

属性

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/network/nis

関連項目

svcs(1), ypwhich(1), sysinfo(2), hosts(5), nsswitch.conf(5), attributes(7), smf(7), domainname(8), svcadm(8), ypbind(8)

The NIS client service is managed by the service management facility, smf(7), under the service identifier:

svc:/network/nis/client:default

Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(8). The service's status can be queried using the svcs(1) command.

バグ

ypinit sets up the list of NIS servers only for the current domain on the system when it is run, that is, the domain returned by the SI_SRPC_DOMAIN command to sysinfo(2). Care should be taken to ensure that this is the same as the desired domain for NIS client processes.