Sun Desktop Manager 1.0 管理指南

添加

将配置文件指定给元素。

语法

add [--scope=<user|host>] [--entity=<entity>] <profile name> <target entity>

--scope=<user|host>:配置文件的范围,可以是用户或主机。如果未指定,则默认范围为用户。

--entity=<entity>:配置文件所在的元素。如果未指定,则默认为根组织或根域中的元素(由 --scope 选项确定)。

<profile name>:要指定给元素的配置文件的名称。如果在该层上不存在配置文件,或者存在多个同名同范围的配置文件,命令将会退出并报告错误。

<target entity>:将配置文件指定到的元素。


示例 3–1 将配置文件添加到元素

% pgtool add UserProfile1 cn=Role1,o=staff,o=apoc

将位于根组织中的配置文件 "UserProfile1" 指定给元素 "cn=Role1,o=staff,o=apoc"。