- online man pages   

SunOS man pages : nisrmdir (1)

User Commands                                         nisrmdir(1)


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 direc- tory 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 run- ning.


The following options are supported: -i Interactive mode. Like the system rm(1) command the nisrmdir command will ask for confirmation prior to removing a directory. If the name specified by dirname is a non-fully qualified name this option is forced on. This prevents the removal of unexpected direc- tories. -f Force the command to succeed even though it may not be able to contact the affected replicas. This option should be used when a replica is known to be down and will not be able to respond to the removal notifica- tion. When the replica is finally rebooted it will read the updated directory object, note that it is no longer a replica for that directory, and stop respond- ing to lookups on that directory. Cleanup of the files that held the now removed directory can be accom- plished manually by removing the appropriate files in the /var/nis directory (see nisfiles(4) for more information). -s hostname Specify that the host hostname should be removed as a replica for the directory named dirname. If this option is not present all replicas and the master server for a directory are removed and the directory is removed from the namespace.


SunOS 5.8 Last change: 18 May 1999 1 User Commands nisrmdir(1) The following operand is supported: dirname An existing NIS+ directory.


Example 1: Using the nisrmdir Command To remove a directory bar under the domain, one would use the command: example% nisrmdir To remove a replica that is serving directory one would use the command: example% nisrmdir -s To force the removal of directory from the namespace, one would use the command: example% nisrmdir -f


NIS_PATH If this variable is set, and the NIS+ directory name is not fully qualified, each directory specified will be searched until the directory is found (see nisdefaults(1) ).


The following exit values are returned: 0 Successful operation. 1 Operation failed.


See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Availability | SUNWnisu | |_____________________________|_____________________________|


nis+(1), nisdefaults(1), nisopaccess(1),nisrm(1), nisfiles(4) , attributes(5) SunOS 5.8 Last change: 18 May 1999 2 User Commands nisrmdir(1)


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) . SunOS 5.8 Last change: 18 May 1999 3