nischmod
rose1 发表于 2020-10-15 09:10浏览次数:
在Solaris操作系统上,nischmod命令更改NIS +对象的访问权限。
On the Solaris operating system, the nischmod command changes access rights on an NIS+ object.
目录:
1 nischmod 运行系统环境
2 nischmod 说明
3 nischmod 语法
4 nischmod 例子
nischmod 运行系统环境
nischmod 说明
nischmod将NIS +对象或名称指定的条目的访问权限(模式)更改为mode。只有具有对对象的修改访问权限的主体才能更改其模式。
模式具有以下形式:
rights [, rights]...
权利具有以下形式:
[ who ] op permission [ op permission ]...
谁的组合:
n
|
没有人的权限。
|
o
|
所有者的权限。
|
g
|
组的权限。
|
w
|
世界的权限。
|
a
|
所有。这与指定owg相同。
|
如果谁被省略,则默认为一个。
op是以下之一:
+
|
授予权限。
|
-
|
撤销许可。
|
=
|
明确设置权限。
|
许可是以下各项的任意组合:
与system chmod命令不同,nischmod不接受八进制值。
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.
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. This is the same as specifying 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.
|
Unlike the system chmod command, nischmod does not accept octalvalues.
nischmod 语法
nischmod [-AfLP] mode name...
选件
-A
|
修改串联路径中所有表中与name中指定的搜索条件匹配的所有条目。此选项暗含-P开关。
|
-f
|
强制执行操作,如果操作失败,则静默失败。
|
-L
|
跟随链接并更改链接对象或条目的权限,而不是链接本身的权限。
|
-P
|
遵循命名表中的串联路径。仅当名称是索引名称或还指定了-L开关并且命名对象是指向条目的链接时,此选项才适用。
|
环境
如果设置了NIS_PATH 环境变量,并且NIS +名称不完全限定,则将搜索指定的每个目录,直到找到对象为止。请参见nisdefaults。
nischmod [-AfLP] mode name...
Options
-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.
|
-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.
|
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.
nischmod 例子
nischmod a+r object
授予每个人对对象object的读取权限。
nischmod gn-cm object
拒绝对对象组和“ nobody”(未经授权的客户端)的对象对象的创建和修改访问。
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).