HP-UX Reference (11i v1 00/12) - 1 User Commands N-Z (vol 2)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/neqn.1
________________________________________________________________
___ ___
n
nismkdir(1) nismkdir(1)
NAME
nismkdir - create NIS+ directories
SYNOPSIS
nismkdir [ -D defaults ][-m hostname | -s hostname ] dirname
DESCRIPTION
The nismkdir command creates new NIS+ subdirectories within an existing domain. It can also be used
to create replicated directories. Without options, this command will create a subdirectory with the same
master and the replicas as its parent directory.
It is advisable to use nisserver(1M) to create an NIS+ domain which consists of the specified directory along
with the org_dir and groups_dir subdirectories.
The two primary aspects that are controlled when making a directory are its access rights, and its degree of
replication.
dirname is the fully qualified NIS+ name of the directory that has to be created.
Options
-D defaults Specify a different set of defaults to be used when creating new directories. The defaults
string is a series of tokens separated by colons. These tokens represent the default values
to be used for the generic object properties. All of the legal tokens are described below.
ttl=time
This token sets the default time to live for objects that are created by this command.
The value time is specified in the format as defined by the nischttl(1) command. The
default value is
12h (12 hours).
owner=ownername
This token specifies that the NIS+ principal ownername should own the created
object. The default for this value is the principal who is executing the command.
group=groupname
This token specifies that the group groupname should be the group owner for the
object that is created. The default value is NULL.
access=rights
This token specifies the set of access rights that are to be granted for the given object.
The value rights is specified in the format as defined by the nischmod(1) command.
The default value is
----rmcdr- - -r- - -.
-m hostname If the directory named by dirname does not exist, then a new directory that is not repli-
cated is created with host hostname as its master server.
If the directory name by dirname does exist, then the host named by hostname is made its
master server.
-s hostname Specify that the host hostname will be a replica for an existing directory named dirname.
RETURN VALUES
This command returns 0 if successful and 1 otherwise.
EXAMPLES
Create a new directory bar under the foo.com. domain that shares the same master and replicas as
the foo.com. directory:
nismkdir bar.foo.com.
Create a new directory bar.foo.com. that is not replicated under the foo.com. domain:
nismkdir -m myhost.foo.com. bar.foo.com.
Add a replica server of the bar.foo.com. directory:
nismkdir -s replica.foo.com. bar.foo.com.
EXTERNAL INFLUENCES
Section 1−−600 − 1 − HP-UX Release 11i: December 2000
___
___