nisrmdir - remove NIS+ directories
nisrmdir [-if] [-s hostname] dirname
nisrmdir deletes existing NIS+ subdirectories. It can remove a directory outright, or simply remove replicas from serving a directory.
This command modifies the object that describes the directory dirname, and then notifies each replica to remove the directory named dirname. If the notification of any of the affected replicas fails, the directory object is returned to its original state unless the -f option is present.
This command will fail if the NIS+ master server is not running.
The following options are supported:
-i
-f
-s hostname
Special per-server and per-directory access restrictions may apply when this command updates the serving lists of the affected NIS+ servers. For more information, see nisopaccess(1).
The following operand is supported:
dirname
Example 1 Using the nisrmdir Command
To remove a directory bar under the foo.com. domain, one would use the command:
example% nisrmdir bar.foo.com.
To remove a replica that is serving directory bar.foo.com. one would use the command:
example% nisrmdir -s replica.foo.com. bar.foo.com.
To force the removal of directory bar.foo.com. from the namespace, one would use the command:
example% nisrmdir -f bar.foo.com.
NIS_PATH
The following exit values are returned:
0
1
See attributes(5) for descriptions of the following attributes:
|
NIS+(1), nisdefaults(1), nisopaccess(1),nisrm(1), nisfiles(4), 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 Добавить, Поддержать, Вебмастеру |