NFS Services Administrator's Guide
Configuring and Administering NIS+
Administering NIS+
Chapter 5 233
To Change the Default Properties for New NIS+
Objects
Whenever you create a new NIS+ object (a directory, table, table entry,
group, or link), it inherits a set of default properties (owner, group owner,
permissions, time to live, and so on). You can override the default object
properties by setting the NIS_DEFAULTS environment variable.
You can use SAM (System Administration Manager) to change all the
default object properties except time to live. To run SAM type sam at the
HP-UX prompt. For more information, type man 1M sam.
1. Issue the nisdefaults command to find out the current default
values:
nisdefaults
2. If you are using the Korn or Bourne shell, issue the following
command:
NIS_DEFAULTS=access=perms:owner=owner:group=group:ttl=time
export NIS_DEFAULTS
If you are using the C shell, issue the following command:
setenv NIS_DEFAULTS
access=perms:owner=owner:group=group:ttl=time
You do not have to specify all four values. For example, you could
change just the default owner and group owner, as in the following
example:
setenv NIS_DEFAULTS
owner=garlic.Eng.Wiz.Com.:group=admin.Eng.Wiz.Com.
You can also set the default group owner by setting the NIS_GROUP
environment variable, but if the NIS_DEFAULTS variable specifies a
default group owner, it overrides the NIS_GROUP variable.
The time to live (ttl) applies only to NIS+ directories and groups. It tells
NIS+ clients when to purge the information in their caches and get new
information from a server. (To change the ttl value for an existing NIS+
object, use the nischttl[1] command.)
For more information, see the following man pages: nisdefaults(1),
nischttl(1), sam(1M), and nis(1).