SUNWnisu
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 has the form:
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.
op is one of:
- +
- To grant the permission.
- -
- To revoke the permission.
- =
- To set the permissions explicitly.
permission is any combination of:
- r
- tRead.
- m
- tModify.
- c
- tCreate.
- d
- tDestroy.
This example gives everyone read access to an object. (i.e., access for owner, group, and all).
example% nischmod a+r object
This example denies create and modify privileges to group and unauthenticated clients (nobody).
example% nischmod gn-cm object
In this example, a complex set of permissions are set for an object.
example% nischmod o=rmcd,g=rm,w=rc,n=r object
This example sets the permissions of an entry in the password table so that the group owner can modify them.
example% nischmod g+m ’[uid=55],passwd.org_dir’
The next example changes the permissions of a linked object.
example% nischmod -L w+mr linkname
nischmod returns 0 on success and 1 on failure.
Unlike the system chmod(1) command, this command does not accept an octal notation.