nisln - symbolically link NIS+ objects
nisln [-L] [-D defaults] name linkname
The nisln command links a NIS+ object named name to a NIS+ name linkname. If name is an indexed name (see nismatch(1)), the link points to entries within a NIS+ table. Clients wishing to look up information in the name service can use the FOLLOW_LINKS flag to force the client library to follow links to the name they point to. Further, all of the NIS+ administration commands accept the -L switch indicating they should follow links (see nis_names(3NSL) for a description of the FOLLOW_LINKS flag).
When creating the link, nisln verifies that the linked object exists. Once created, the linked object may be deleted or replaced and the link will not be affected. At that time, the link will become invalid and attempts to follow it will return NIS_LINKNAMEERROR to the client. When the path attribute in tables specifies a link rather than another table, the link will be followed if the flag FOLLOW_LINKS was present in the call to nis_list() (see nis_tables(3NSL)) and ignored if the flag is not present. If the flag is present and the link is no longer valid, a warning is sent to the system logger and the link is ignored.
The following options are supported:
-D defaults
ttl=time
owner=ownername
group=groupname
access=rights
-L
Example 1 Creating a link
In this example, we create a link in the domain foo.com. named hosts that points to the object hosts.bar.com.:
example% nisln hosts.bar.com. hosts.foo.com.
Example 2 Making a link that points to an entry in the hosts table
In this example, we make a link example.foo.com. that points to an entry in the hosts table in eng.foo.com:
example% nisln '[name=example],hosts.eng.foo.com.' example.foo.com.
NIS_PATH
The following exit values are returned:
0
1
See attributes(5) for descriptions of the following attributes:
|
nisdefaults(1), nismatch(1), nisrm(1), nistbladm(1), nis_names(3NSL), nis_tables(3NSL), attributes(5)
NIS+ might not be supported in future releases of the Solaris operating system. Tools to aid the migration from NIS+ to LDAP are available in the current Solaris release. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |