NFS Services Administrator's Guide
Configuring and Administering NIS+
Administering NIS+
Chapter 5236
To Change the Ownership of NIS+ Objects
• To change the owner of an NIS+ directory, table, table entry, group,
or link, issue the nischown command from an NIS+ client host.
The following example changes the owner of the passwd table entry
for user sid to sid.Sales.Wiz.Com.:
nischown sid.Sales.Wiz.Com. ’[name=sid],passwd.org_dir’
The following example makes sid.Sales.Wiz.Com. the owner of his
own cred table entries:
nischown sid ’[cname=sid.Sales.Wiz.Com.],cred.org_dir’
In this example, the owner (sid) not a fully qualified NIS+ principal
name. NIS+ will append the default domain to sid when it processes
the command. The cred table contains two entries for
sid.Sales.Wiz.Com.: a Local credential and a DES credential. The
command in this example will change the ownership of both entries,
because both entries have the same value in the cname column.
• To change the group owner of an NIS+ directory, table, table entry,
group, or link, issues the nischgrp command.
The following example changes the group owner of the
Sales.Wiz.Com. directory to admin.Sales.Wiz.Com.:
nischgrp admin.Sales.Wiz.Com. Sales.Wiz.Com.
The following example changes the group owner of all the entries in
the hosts table to the admin group in the default domain:
nischgrp admin ’[]hosts.org_dir’
To change the ownership of an NIS+ object, you need modify permission
for the object.
You can use SAM (System Administration Manager) to change the
ownership for groups, tables, and table entries. To run SAM type sam at
the HP-UX prompt. For more information, type man 1M sam.
You cannot change the owner or group owner of a table column, because
it is always the same as the owner and group owner of the table.
For more information, see the following man pages: nischown(1),
nischgrp(1), sam(1M), and nis(1).