nischmod(1) nischmod(1)
NAME [Toc] [Back]
nischmod - change access rights on an NIS+ object
SYNOPSIS [Toc] [Back]
nischmod [ -AfLP ] mode name...
DESCRIPTION [Toc] [Back]
nischmod changes the access rights (mode) of the NIS+ objects or
entries specified by name to mode. Entries are specified using
indexed names (see nismatch(1)). Only principals with modify access
to an object may change its mode.
mode has the following form:
rights [,rights] ...
rights has the form:
[ who ] op permission [ op permission ]...
who is a combination of:
n Nobody's permissions.
o Owner's permissions.
g Group's permissions.
w World's permissions.
a All, or owg.
If who is omitted, the default is a.
op is one of:
+ To grant the permission.
- To revoke the permission.
= To set the permissions explicitly.
permission is any combination of:
r Read.
m Modify.
c Create.
d Destroy.
Options [Toc] [Back]
-A Modify all entries in all tables in the concatenation path that
match the search criteria specified in name. This option implies
the -P switch.
-f Force the operation and fail silently if it does not succeed.
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003
nischmod(1) nischmod(1)
-L Follow links and change the permission of the linked object or
entries rather than the permission of the link itself.
-P Follow the concatenation path within a named table. This option
is only applicable when either name is an indexed name or the -L
switch is also specified and the named object is a link pointing
to an entry.
Notes [Toc] [Back]
Unlike the system chmod command, this command does not accept an octal
notation.
EXAMPLES [Toc] [Back]
Give everyone read access to an object (that is, access for owner,
group, and all):
nischmod a+r object
Deny create and modify privileges to group and unauthenticated clients
(nobody):
nischmod gn-cm object
Set a complex set of permissions for an object:
nischmod o=rmcd,g=rm,w=rc,n=r object
Set the permissions of an entry in the password table so that the
group owner can modify them:
nischmod g+m '[uid=55],passwd.org_dir'
Change the permissions of a linked object:
nischmod -L w+mr linkname
EXTERNAL INFLUENCES [Toc] [Back]
Environment Variables
NIS_PATH If this variable is set and the NIS+ name is not fully
qualified, each directory specified will be searched
until the object is found (see nisdefaults(1)).
RETURN VALUE [Toc] [Back]
nischmod returns 0 on success and 1 on failure.
WARNINGS [Toc] [Back]
HP-UX 11i Version 2 is the last HP-UX release on which NIS+ is
supported.
LDAP is the recommended replacement for NIS+. HP fully supports the
industry standard naming services based on LDAP.
Hewlett-Packard Company - 2 - HP-UX 11i Version 2: August 2003
nischmod(1) nischmod(1)
AUTHOR [Toc] [Back]
nischmod was developed by Sun Microsystems, Inc.
SEE ALSO [Toc] [Back]
chmod(1), nis+(1), nischgrp(1), nischown(1), nisdefaults(1),
nis_objects(3N).
Hewlett-Packard Company - 3 - HP-UX 11i Version 2: August 2003 [ Back ] |