On the Solaris operating system, the nischmod command changes access rights on an NIS+ object.

Description

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). Only principals with modify access to an object may change its mode.

  • Description
  • Syntax
  • Environment
  • Examples
  • Related commands
  • Linux commands help

mode has the following form:

rights [, rights]…

rights has the form:

[ who ] op permission [ op permission ]…

who is a combination of:

If who is omitted, the default is a.

op is one of:

permission is any combination of:

Unlike the system chmod command, nischmod does not accept octal values.

Syntax

nischmod [-AfLP] mode name…

Options

Environment

If the NIS_PATH environment variable is set, and the NIS+ name is not fully qualified, each directory specified will be searched until the object is found. See nisdefaults.

Examples

nischmod a+r object

Grants everyone read access to object object.

nischmod gn-cm object

Denies creation and modification access of object object to group, and to “nobody” (unauthorized clients).

chmod — Change the permissions of files or directories.nischown — Change the owner of an NIS+ object on a system running Solaris.nisdefaults — Display NIS+ default values.nismatch — Utilities for searching NIS+ tables.