Changes the group owner of a NIS+ object.
The nischgrp command changes the group owner of the NIS+ objects or entries specified by name to the specified NIS+ group. Entries are specified using indexed names. If group is not a fully qualified NIS+ group name, it is resolved using the directory search path. For additional information, see the nisdefaults command.
The only restriction on changing an object's group owner is that you must have modify permissions for the object.
This command will fail if the master NIS+ server is not running.
The NIS+ server will check the validity of the group name prior to effecting the modification.
Item | Description |
---|---|
-A | Modifies all entries in all tables in the concatenation path that match the search criterion specified in name. This flag implies the -P flag. |
-f | Forces the operation and fails silently if it does not succeed. |
-L | Follows links and changes the group owner of the linked object or entries rather than the group owner of the link itself. |
-P | Follows the concatenation path within a named table. This flag is valid when either name is an indexed name or the -L flag is also specified and the named object is a link pointing to entries. |
Item | Description |
---|---|
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 the nisdefaults command). |
This command returns the following exit values:
Item | Description |
---|---|
0 | Success |
1 | Failure |
nischgrp newgroup.remote.domain. object
nischgrp my-buds object
nischgrp admins '[uid=99],passwd.org_dir'
admins is a NIS+ group in the same domain.
nischgrp -L my-buds linkname
nischgrp my-buds '[],hobbies'